add custom php code on footer

Posted in: Newspaper
Post count: 21

Hi all,

I would like to add some custom PHP code on the footer of my Newspaper theme, I see there is a custom HTML block but it doesn’t seem to work with PHP. Any ideas?

Mike

Post count: 21065

Hello Mike!

Yes, you can not add the code like this. You need to change the code from files. Please note that any change you make in the theme files after update will be overwritten and you have to make the changes again. Better save the code somewhere and then apply it again after every update.

Thank you!

Post count: 21

So, I need to add it to the footer.php for example ?

  • This reply was modified 5 years by mixos.
Post count: 21

I tried to edit the footer.php but nothing appears. On Theme panel -> Footer the “Footer – Magazine Pro” is selected and seems that the footer comes from another file. Please advise which file do I have to edit?

Post count: 21

I see that the footer is a Cloud Template, so I went to Cloud Templates -> “Footer – Magazine PRO” and edit it. The files has a shortcode structure, so all I need is a shortcode to be able to run a single line PHP script. Please advise,

Post count: 21065

Hello Mike!

Unfortunately, if you have a cloud template, then you can not find any file in order to modify it. We do not have any shortcode to write PHP.

Thank you for understanding!

Post count: 8

So, in case of cloud template there is no way to add custom php code to the page????

Post count: 21065

Hello @Kosowar!

If you have the same query, then it is the same response. The reason of this fact is because the cloud templates are stored in the database.

Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.