Avada › Forums › Community Forum › Code-block not displaying some external widgets
-
AuthorPosts
-
Hi,
I have been trying to add the following external widgets to code-block elements and they are not displaying. The code generated from the sites are supposed to create a badges generated by the following websites AirBNB & Expedia:
The code that won’t display from expedia:
<div id=’widgetContainerBox’ data-isaddnofollow=’false’></div>
<script src=’https://apps.expediapartnercentral.com/lodging/content/award/static/js/rating/11962641/Hotels-Dark-Square-en_GB.js?widgetName=Property Rating Widget&hotelName=Langdale View Guest House&noFollow=false’></script>The code that won’t display from AirBNB:
<div class=”airbnb-embed-frame” data-review-count=”26″ data-review-rating=”5″ data-view=”star_rating_button” data-listing-id=”5100962″ data-eb=”1530484248_GPs2E5144x1QxC4G” data-eu=”JKka9LHsyPcR+6G0Gr3sXK/S7ZblqnHcEekU0MBhGCYphRBb8V/zQLmqTCtY
ApO9kMc13BSQsn29xHen1DsaonytQNqK5O4GnpLMBhCqDvTRomkL7h6g0KsJ
s7eVWHbPFYewM3D6CgmDFdTcfg22jbnx+p1HG2KZ/ggzexAjAjGC7FaMiy7C
rLZdyqGWB5PaAOR0hRN6+pXUDEQHsivV5m+PuFKvJw0SMGSnm9o2nAO8I7DB
SYfSLRIbPkkno4vPuPqpM+6R4LFcYxzEEt1FMeF4LvJ90492c6fiIuTAqwXZ
D8sbulkJz1GF9lGbuzeNr5mIcNWmgS8kh4O2k99kqw==
” data-trigger-source-type=”badge_center” data-embed-source-type=”badge_center” data-listing-url=”https://www.airbnb.co.uk/rooms/5100962″ style=”height:75px;margin:auto”><span>5-star with </span><span><span>26 reviews</span></span><script async=”” src=”https://www.airbnb.co.uk/embeddable/airbnb_jssdk”></script></div>Oddly enough, their is other similar badges on the site currently that display perfectly
within Avada’s code-block elements. For whatever reason the code above just don’t appear on the site.Can anyone help with this please?
(the website is: langdaleview.co.uk)
ThanksCan anyone help with this issue please? Thanks
If there isn’t anyone on here that has any ideas. Does any one know where I might go that may be able to advise me? Thanks
There appears to be syntax/encoding errors in the Expedia script. Change the quotation marks to regular double quotes like below and the code works in a plain old HTML document and when I paste it into a Code Block widget in Avada (http://www.pigsandbees.com/widget-test/):
<div id="widgetContainerBox" data-isaddnofollow="false"></div> <script src="https://apps.expediapartnercentral.com/lodging/content/award/static/js/rating/11962641/Hotels-Dark-Square-en_GB.js?widgetName=Property Rating Widget&hotelName=Langdale View Guest House&noFollow=false"></script>
The AirBnB widget not working is a known issue on their end:
https://community.withairbnb.com/t5/Help/Embed-Review-badge-on-site-not-working/td-p/599744Putting that code into a plain HTML document and viewing the Console in FireFox shows an error ‘
fetch
is not configured, missing property’. I’d contact AirBnB to see if they have a fix.Hi, I forgot to say thanks for this… so thanks!!
-
AuthorPosts
- You must be logged in to reply to this topic.