Javascript code before Body Tag

Posted in: Newsmag
Post count: 16

I need to install a javascript code from a company that handles our affilate links for tracking but I can’t seem to find where to place the code. Our old theme had a section that allowed us to place a code right before the </body> tag which is exactly what I need.

I tried placing the code in the Custom Javascript section on this theme but the company still says it can’t verify our code install. How can I do this? I need to insert the code right before the </body> of posts and pages.

Thanks

Post count: 9544

Simplest way probably in the header php file.

Post count: 16

Can you recommend where exactly in the header, and do you work for this company?

Post count: 40

As Chris says, you can place it right before the </body>.

Sometimes, that doesn’t work for me, too. So, I use the “Add To Content” plugin for this type of stuff. The plugin places it, intelligently, in the right spot for you.

(we’re both participants, not Tag Div)

Post count: 6600

Hi,


@alintiniuc
You can find the closing body tag here: http://screencast.com/t/mxe7cYll8

Thanks

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