Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32175
    Diya Gogia
    Guest

    Hello,

    I want to monetize my website by adding affiliate links. I use CJ affiliate which offers to automatically monetize any links on my website. To do this, it says I must paste a script right before the </body> tag. However, I can’t find a </body> tag in any of the .php files. Please help me understand where must I place this script. I am very much new to BoldGrid and am not able to figure this out.

    Thank you.

    #32191
    Jesse Owens
    Keymaster

    Hi Diya-

    Thanks for the question, this is a really common question for new WordPress users. There are a few ways to add scripts to your site, but you should not try to do it by modifying the theme files directly. The main reason I say that is because whenever you update your theme, your modifications will be overwritten.

    Probably the easiest way to accomplish this is to install the Insert Headers and Footers plugin, which is trusted by over 1 Million websites. Once you’ve installed and activated that plugin, you’ll find a new menu under Settings, and you can simply paste your code into the Scripts in Footer section, which will insert it just above the </body> tag.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How to insert a tag before ’ is closed to new replies.