Page 1 of 1
Scripts
Posted: Mon Feb 11, 2019 8:18 am
by colin1661music
Hi Guys
Sorry to be a pain I use rainy Sunday afternoons to test things and for some reason something is stripping out javascripts from pages on a new website I'm working on, working fine on old sites, for example the copyright script is not appearing on this test page.
http://beckenhamplacepark.co.uk/test/
Here is the wysiwyg file
http://beckenhamplacepark.co.uk/test/test.zip
Thanks for your help
Re: Scripts
Posted: Mon Feb 11, 2019 8:34 am
by BaconFries
Viewing the source you have a index.js file on your server instead of a index.html or .php. This should not be there and indicates a configuration issue on the server. It could also be you have enabled 'generate external JS file in Tools->Options->HTML.
Either change the server configuration or disable 'generate external JS file' in Tools->Options->HTML and see if that resolves it.
Re: Scripts
Posted: Mon Feb 11, 2019 9:02 am
by colin1661music
Thank you some how "Generate external JS file for page specific scripts" was ticked.
I've create over 30 sites in WYSIWYG this have never happened before!
Once again thanks for a brilliant service.
BTW love the new cards they've revolutionised the way i create sites, would a bit more control over them.
Re: Scripts
Posted: Mon Feb 11, 2019 9:49 am
by colin1661music
Hi sorry to be a pain,
That solved the problem of the copyright script, but this all started because I couldn't put google ads on the site I was creating, as I said before I've created over 30 sites and never had a problem before and this ad is on the other sites on the same server and is working fine:-
This is what wysiwyg does to the code
<div id="wb_Footer-ad">
<div id="Footer-ad">
<div class="row">
<div class="col-1">
</div>
<div class="col-2">
<!-- london-maps-ad -->
<div id="london-maps-ad" style="display:inline-block;width:293px;height:100px;z-index:0">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- free london everts 320 100 -->
<ins class="adsbygoogle"
="" style="display:inline-block;width:320px;height:100px"
="" data-ad-client="ca-pub-1137652734016121"
="" data-ad-slot="4816100260">
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
</div>
<div class="col-3">
</div>
</div>
</div>
</div>
This is how I paste in the html
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- free london everts 320 100 -->
<ins class="adsbygoogle"
style="display:inline-block;width:320px;height:100px"
data-ad-client="ca-pub-1137652734016121"
data-ad-slot="4816100260"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Re: Scripts
Posted: Mon Feb 11, 2019 9:57 am
by Pablo
Please set all HTML/CSS/JavaScript formatting options to default.
Re: Scripts
Posted: Mon Feb 11, 2019 10:25 am
by colin1661music
Re: Scripts
Posted: Mon Feb 11, 2019 10:28 am
by Pablo
Please click 'Reset settings'