Head And Body Tag Question

Posted in: Newsmag
Post count: 10

I am trying to add a sponsored content widget, which is basically another ad code, to single posts. My instructions say I’m supposed to add some code in the <head> and at the end of the <body> tag, as well as under content for it to show under my posts.

Am I supposed to be looking at header.php or index.php?

I found the <head> tag only in header.php, and the <body> tag I found in index.php, but I did not see a closing </body> tag, so not sure where to put the code or if I’m looking in the wrong place.

Also, when I already have adsense “Article bottom ad” enabled, what would be the correct location to place the code under single post content, right below the Article bottom ad?

  • This topic was modified 11 years by gmdirect.
Post count: 6600

Hi,

You can find the head tag in the header.php file just like you already figured this out: http://screencast.com/t/3VQFFMzBfq3
The and of the body tag is located in the footer.php file: http://screencast.com/t/68A6XtoQ5t
To place the code under single post content, below the Article bottom ad you need to edit the loop-single.php file and you code like this: http://screencast.com/t/gvIiBJGhKYg5

Thanks

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