Google adsense code

Posted in: Newspaper
Post count: 1

Hi to all. I have a question. I want to active adsense box in my site. The first step required is to paste a google cond after head tag. How i can add this on html code? Thanks

Post count: 1341

First read please this manual if you want insert Google adsence in header of your site: https://forum.tagdiv.com/header-ads-adsense/

Post count: 22421

Hello,

If you mean the html head tag, you can find it in header.php here: https://www.screencast.com/t/NONzSF2wT
Add your code right before the closing head tag (</ head >)

Thank you!

Post count: 20

I have added some code in the header.php.
But what happens with the header.php when the theme is updated?
Is header.php replaced in each update, so that I have to insert my <head> code again after every update?
Thanks.

Post count: 1341

Use Child theme.

The child theme support included in our themes is intended for developers to modify core parts of the theme without modifying the actual theme. This allows you to keep updating the theme without loosing your changes.

https://forum.tagdiv.com/the-child-theme-support-tutorial/

Post count: 20

Thanks,
But I am not talking about the theme headers in the “parts” directory.
The header.php is in the root directory and is not listed in the child theme documentation.
Can I just pop in a header.php file in the child theme?

Post count: 20688

Hi,

I believe that it would not be a problem if you were to use a header.php in your child theme. Please try it and let us know how it goes for you.

Thanks

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