• I joined the Apple Affiliate program. Apple requires their Javascript to be placed between <footer> and </footer>. They recommend editing the footer in WordPress | Editor. This shows the OceanWP footer.php file. I don’t see any <footer> </footer> in the footer.php file. I don’t see any <footer> </footer> when I view Page Source in my browser when my page is loaded. I’d appreciate if you could tell me how to get this done. Thanks.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    The best way to do it, use Insert header and Footer plugin to add the code. You will see the footer template in the OceanWP theme > Partials > Footer folder.

    Thread Starter williamericwolff

    (@williamericwolff)

    The Insert Header and Footer plugin doesn’t do anything useful. As far as the footer is concerned, all the plugin does is put whatever you give it somewhere before the </body> tag. That is almost, but not quite, completely unlike the footer.

    I found the layout.php file in the Footer folder you mentioned. That file has the <footer> </footer>. I put the script in there and it worked. So, thank you very, very, very, very much. ??

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Apple Affiliate Javascript in footer’ is closed to new replies.