Black Friday Sale! Get up to $30 off GP Premium! Learn more ➝

[Support request] Hook element for Skimlinks javascript not working

Home Forums Support [Support request] Hook element for Skimlinks javascript not working

Home Forums Support Hook element for Skimlinks javascript not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1964924
    Tamarah

    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&gt;

    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.

    #1965169
    David
    Staff
    Customer Support

    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.

    #1966319
    Tamarah

    That did not help. I’m getting the same results.

    #1966330
    David
    Staff
    Customer Support

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.