• Resolved dem0na

    (@dem0na)


    We’d love to add Google ads to our site but I can’t seem to locate the header.php file. The AdSense “getting started” info says my code snippet needs to be between <head> and </head> on the header.php file.

    I’ve gone to the dashboard under Appearance – Editor but I can only see author.php, content.php, footer.php, functions.php and sidebar.php. Why is the header.php not here?

    Help would be greatly appreciated.

    Thanks, Trish

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dem0na

    (@dem0na)

    Link to our site – https://www.thereviewsarein.com/

    Theme Author mrwweb

    (@mrwweb)

    Hi There,

    A few quick notes to help clarify this issue:

    1. Blogsonry is a child theme. (It’s parent theme is Twenty Thirteen.) That means Blogsonry only overrides the files it needs to from the parent theme and header.php is not among those.
    2. The only safe way to modify a theme is with a child theme. However, “grandchild” themes don’t exist, so you’ll need to find another way to incorporate the Adsense code.
    3. Even if you could use a child theme for this, I’d recommend you find an Adsense plugin instead. I’ve never used any so I can’t recommend one, but I’d be rather surprised if you can’t find one to help you add the code.
    4. If you’re comfortable with code, look into the wp_head action which would let you write your own small custom plugin to get the code into the <head> of the page.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adsense Addition Issues’ is closed to new replies.