Home › Forums › Weaver Xtreme Theme › Check Embeded Code
- This topic has 9 replies, 4 voices, and was last updated 10 years, 11 months ago by
Gillian.
-
AuthorPosts
-
September 19, 2015 at 09:30 UTC #18277
greg
ParticipantWe have been told to copy and paste the code below, but without the, into any HTML page where the widget should appear.<script src=”//course.golfscape.com/4c33cd.js” type=”text/javascript”></script><div name=”golfscape-widget”><a href=”https://golfscape.com/south-africa/cape-town”>Cape Town Golf</a></div>We have done that and get the Check Embeded Code message. Before going back to the 3rd party that provided the code we’d like to ensure that we have not missed any setting within the Weaver Xtreme theme that needs setting for this code to work. You can see the code working at http://arabellacountryestate.co.za/arabella-golf-course/Many thanks for any help you can offer.September 19, 2015 at 15:37 UTC #24613Weaver
KeymasterIs the script for the Book Tee Time widget?
It is working when I follow your link.
Very nice looking site, by the way — BUT… I hope you are aware that the site is not responsive, and will not display ideally on mobile devices.
September 19, 2015 at 18:20 UTC - Views: 3 #24614greg
Participanthmmm, thank you for your response.
Yes, that script is for the Book Tee Time widget.When I visit the site all I see is…so I’m not sure how you followed the link :-/Also, when I view the site in my S4 it appears as expected. When I reduce the width of the browser by dragging an edge the site seems to be fully responsive. What am I missing? Thank you for your time. GregSeptember 19, 2015 at 22:25 UTC #24615scrambler
ModeratorI think @weaver followed your second link that points to the reference site where the code works, and not your site
http://clovelly.co.za/online-bookings/
Where you get that message, indicating something is wrong with what you inserted. (and that site is responsive)
If you inserted the code in the page content editor, make sure you did that with the editor in TEXT mode, and make sure you checked the Page option “allow Raw HTML and script”
But the fact yo are getting “Check embedded code” means the script is working, as it is the script that generates that message.
So I am tempted to say that once you have checked the above, you probably need to ask the provider of the code to know why it is generating that message
September 19, 2015 at 22:42 UTC - Views: 2 #24616Weaver
KeymasterSorry – missed the first link.
The working version of the script looks like:
<p><script src=”//course.golfscape.com/4e3245.js” type=”text/javascript”></script></p>
<div name=”golfscape-widget”><a href=”https://golfscape.com/south-africa/cape-town”>Cape Town Golf</a></div>The <p>’s are added by the WP editor.
The non-working script looks like:
<p><script src=”//course.golfscape.com/4c33cd.js” type=”text/javascript”></script>
<div name=”golfscape-widget”><a href=”https://golfscape.com/south-africa/cape-town” onclick=”_gaq.push();” >Cape Town Golf</a></div>
Notice the missing </p>, and that this code doesn’t look anything like what you provided in your first question:<script src=”//course.golfscape.com/4c33cd.js” type=”text/javascript”></script>
<div name=”golfscape-widget”><a href=”https://golfscape.com/south-africa/cape-town”>Cape Town Golf</a></div>@scrambler’s note about TEXT mode and RAW should fix the <p> issue (which may or may not be an issue).
Otherwise, you need to figure out which is the correct script. I’d guess the simpler one without the onclick code might be correct since is corresponds to the working site.
September 20, 2015 at 05:42 UTC #24617greg
ParticipantThank you both for your replies. I am in contact with the script makers.
September 23, 2015 at 05:12 UTC #24618greg
ParticipantAs per scrambler’s suggestion I inserted the code in the page content editor, made sure that the editor was in TEXT mode, and made sure I checked the Page option “allow Raw HTML and script” – their widget did not work as expected.After discussing with the Book Tee Time widget script makers. Their recommendation was to install the “Raw HTML” plugin by Janis Elsts. After doing that their widget worked as designed.September 23, 2015 at 06:56 UTC #24619Gillian
ParticipantIf you used scrambler’s suggestion, I believe you need to henceforth always edit that page in text mode – if you switch it back to visual mode you risk clobbering the script.
PS I just saw that with the free version of the “Raw HTML” plugin, you also cannot edit in visual mode.September 23, 2015 at 16:47 UTC - Views: 1 #24620scrambler
ModeratorOnce you check the option “allow Raw HTML and script”, the content editor Visual tab disappears and you only have access to text mode for that reason
September 24, 2015 at 00:12 UTC #24621Gillian
ParticipantAh, thanks for that info, scrambler. In which case, the Weaver implementation is preferable to the plugin. I wonder why the Weaver option doesn’t seem to work in this case?
-
AuthorPosts
- You must be logged in to reply to this topic.

