Site logo

Archived topic

Help to place code just before the tag

3 replies · Started by Abdul on December 9, 2020

Viewing posts 1–4 of 4

I need to add a code for an affiliate program.

This is what I am supposed to do.

Copy the script generated above and place it just before the </body> tag on your pages or website template

Can you please let me know how to add the code before the </body? tag ?

Hi Abdul,

You could use wp_footer hook to achieve this.
https://docs.generatepress.com/article/wp_footer/

Go to Appearance > Elements > Add new elemenets > Hook, then choose wp_footer.
You can insert your code in the content box.

Let me know :)

Thanks

No problem :)

This archived topic is closed to new replies.