Site logo

[Support request] Affiliate Widget Code Problems

Home Forums Support [Support request] Affiliate Widget Code Problems

Home Forums Support Affiliate Widget Code Problems

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2507585
    John

    Hello,

    I recently joined the Viator affiliate program. I’d like to install their widgets, but when I follow the instructions they appear on the backend but not when I look at my website via incognito on desktop or mobile.

    The post that I’m adding to is: https://jjandthebug.com/los-angeles-bucket-list/

    This is the code that I tried to add to the post:

    <script async src=”https://www.viator.com/orion/partner/widget.js”></script&gt;

    In a Word Press forum thread, a person said that when they reviewed the code, the last part was missing … <script async src=”https://www.viator.com/orion/partner/widget.js”></script&gt;. The person was wondering if it was actually missing or if a plug in was removing it. That part of the code is in the backend of my post, so it should not be missing. I went through and deactivated the plug ins one by one, and I still couldn’t get it to show on an incognito window / mobile.

    Do you know what might be removing that section of code?

    When I did a search on forum help topics, I found another person with this same problem who used GeneratePress and was trying to install Viator widgets. His stated solution on the thread was ultimately not to use the widgets. This won’t be an option for me long term, and I’m concerned that a similar problem might occur with other widgets.

    #2507590
    Leo
    Staff
    Customer Support

    Hi John,

    I can’t see how GP would cause this problem here.

    Does the code works normally when you use a Twenty series WP theme?

    #2507686
    John

    This is the only website I have, not sure how to check how it would perform on a Twenty series theme.

    After going through all the usual steps and not finding a problem, I’m not sure where to look other than the theme. Especially when I noticed the same question from another GP user that ultimately wasn’t resolved.

    Per Viator help:
    If you have themes or other plugins installed, there may be other ways of installing the widget on your website. Please consult with the theme or plugin support teams.

    Perhaps there’s another way to install the widget other than copying in code using the Custom HTML or Shortcode blocks?

    #2507697
    Leo
    Staff
    Customer Support

    This is the only website I have, not sure how to check how it would perform on a Twenty series theme.

    You can start a staging site to test this. Unfortunately I can’t think of any other way.

    The theme does not have the ability to alter the code you’ve added in a custom HTML widget. It does not have the ability to make it work or not work – it simply outputs what you’ve added.

    #2507759
    John

    OK, I started a staging site. It does work on the staging site, with both desktop / incognito and mobile.

    #2507919
    Leo
    Staff
    Customer Support

    It does work on the staging site

    In that case, it’s definitely not a theme issue.

    You would need to determine why it’s working on a staging site and not the live site.

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