Archived topic
Hook element for Skimlinks javascript not working
3 replies · Started by _blank on October 15, 2021
I added javascript for Skimlinks but it's not working. When I inspect code it shows within an iframe which is not what it's supposed to look like.
Skimlinks' instructions:
Paste this code snippet into your site template just before the </body> tag.
<script type="text/javascript" src="https://s.skimresources.com/js/201531X1680095.skimlinks.js"></script>
So, I created a hook element and pasted the code into it.
Hook: wp_footer
Priority: 99
Display: Entire site
The page used to test the code is here:https://www.onthefeeder.com/global/
See "Skimlinks test" link at bottom. Click it and it'll show you the OOPS page along with how the code is supposed to link.
If you do an inspection on the code you'll see it's there in the right location as expected (just before </body> tag) but is enclosed in iframe
which is not expected.
I don't know if the hook is setup wrong or Skimlinks code.
Could you please take a look? Thank you.
Hi there,
try disabling the SG Optimizer as that is combing JS files, which may include the skimlinks script as i can't see it in the footer.
That did not help. I'm getting the same results.
The wp_footer hook is the correct place to add that code, but all GP does is insert the code, it doesn't do anything with the code. I would suggest talking to skimlinks as to why its not working as it should