Home Forums Weaver Xtreme Theme Check Embeded Code

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #18277
    greg
    Participant

    We 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.
    #24613
    Weaver
    Keymaster

    Is 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.

    #24614
    greg
    Participant

    hmmm, 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.  Greg
    #24615
    scrambler
    Moderator

    I 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

    #24616
    Weaver
    Keymaster

    Sorry – 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&#8221; 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.

    #24617
    greg
    Participant

    Thank you both for your replies.  I am in contact with the script makers.

    #24618
    greg
    Participant
    As 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.
    #24619
    Gillian
    Participant

    If 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.
    #24620
    scrambler
    Moderator

    Once 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

    #24621
    Gillian
    Participant

    Ah, 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?

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