custom code between head tags not added through header.php

Posted in: Newspaper
Post count: 3

Hi,

I traying to add some custom code, specifically the auto ads google script code, through the header.php manually but I’m seeing that the code is not showing in the backend.

It used to be fine days before but i noticed occasionally that the auto ads are not displayed on my website even the code is here in the header.php file.

Oslo i have added some other custom codes in the file, but even then are not there when i sersh for then through the source code on the page

Any advice?
Thanks

Post count: 35449

Hi,

Is no need to edit the theme files, you can set that code in theme panel > analytics/js codes -> https://i.imgur.com/T9Y4Gy4.png here you can set all the code you have and it need to be set between <head> and </head> tags.
Also, our theme has more headers and footers to fit with Envato standards -> https://tagdiv.com/updating-the-core-of-tagdiv-themes/
For example when tagDiv Composer is not activate the theme will use the files from this path -> wp-content/themes/Newspaper/header.php when the plugin is enable and you also use tagDiv Standard pack with a standard header it will be use this path -> wp-content/plugins/td-standard-pack/Newspaper/header.php and if you are using a cloud header it will be use the file from this path wp-content/plugins/td-composer/legacy/Newspaper/header.php
Indeed this is quite confuse, but this is the way that these files are used after after the update per envato requirements.

Thank you!

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