Custom code above

Posted in: Newspaper
Post count: 18

Hi team,

I need to add this code just above the <footer> tag in posts.

<div data-szn-recass-box='{"zone_id": 6601}'></div>

Could you please advice the most effective way for desktop and mobile? Which file I need to modify and where to place it? I have tried several files, but no results…

Thanks,
Jiri

Post count: 35449

Hi,

The pace can differ in function of Newspaper theme version and the footer you have set
If you have the Newspaper v9.7 for mobile theme you can check this file wp-content/plugins/td-composer/mobile/footer.php and for thestop should be in this file -> wp-content/themes/Newspaper/footer.php

Thank you!

Post count: 18

Hi Calin,

Thanks for Quick response. I don’t want to insert it into the footer, but above the <footer> tag. To the end of article (post).

Thanks,
Jiri

Post count: 35449

Hi,

If you want to set that code after article section you need to edit the loop-single-1.php ( for template 1, you need to edit for each template you are using the loop-single-x.php ) -> https://www.screencast.com/t/QUbI8Fd4MrD the path is wp-content/themes/Newspaper/loop-single-1.php

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.