- This topic has 5 replies, 2 voices, and was last updated 3 years, 3 months ago by
Leo.
-
AuthorPosts
-
January 24, 2023 at 10:33 am #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>
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>. 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.
January 24, 2023 at 10:35 am #2507590Leo
StaffCustomer SupportHi 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?
January 24, 2023 at 11:29 am #2507686John
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?
January 24, 2023 at 11:36 am #2507697Leo
StaffCustomer SupportThis 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.
January 24, 2023 at 12:37 pm #2507759John
OK, I started a staging site. It does work on the staging site, with both desktop / incognito and mobile.
January 24, 2023 at 4:34 pm #2507919Leo
StaffCustomer SupportIt 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.
-
AuthorPosts
- You must be logged in to reply to this topic.