Home Forums Weaver Xtreme Theme Check Embeded Code Re: Check Embeded Code

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