header.php in Newspaper 7

Posted in: Newspaper
Post count: 6

Hi there-
We just upgraded our sites from versions of Newspaper 6 to Newspaper 7 and are loving the increase in site speed. We are continuing to do work on the site to increase speed but notice that some of the code from header.php seems to have been relocated elsewhere. The current php file is much smaller and references td_wp_booster_functions.php I found it and saw references to td_header_analytics_code but can’t find it. I know our google tracking code is still someplace on our site as I can see live traffic and can see it when I look in Developer mode. Could someone let me know where this is? More broadly from time to time we need to add tracking codes to either the header or footer of our site. Given the changes which php file should we be making adjustments to? Thanks!
Kim

Post count: 22421

Hello,

The files are the same. The tracking code should be added in the same files. Parts of the code got moved and some got removed and some parts added in. Code gets optimized on each update but the file structure remains the same. Header and footer.php are requirements for every theme so they will not get removed. The head and body tag will always be located in the header.php file
Maybe you have them set through the child theme. We also recommend updating the child theme as well. Please read this topic for an explanation: https://forum.tagdiv.com/topic/setting-up-child-theme/

Thank you!

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