1234s282
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: External Javascript Not Working?Just to update you, the ticket company fixed something at their end (I don’t know the details) and now it works!
Forum: Fixing WordPress
In reply to: External Javascript Not Working?Thanks Andrew – this is a whole new area to me but I shall have a look 🙂
Forum: Fixing WordPress
In reply to: External Javascript Not Working?Following this integration guide to the letter
https://stickytickets.freshdesk.com/support/solutions/articles/3000017890-ticket-widgetEven their support people aren’t sure – said they’d get back to me so I decided to post on here.
Appreciate all your replies 🙂
Forum: Fixing WordPress
In reply to: External Javascript Not Working?<script type="text/javascript" src="https://www.stickytickets.com.au/static/widgets/v1/buy-tickets-1.0.2.js"></script>Thanks Andrew
Forum: Fixing WordPress
In reply to: External Javascript Not Working?I also found some very basic Javascript code online as an example (not related at all to this booking site) and that Javascript worked – so it isn’t like WordPress is blocking scripts or anything like that.
Forum: Fixing WordPress
In reply to: External Javascript Not Working?Hi Andrew
I appreciate such a prompt reply – I have tried linking to the file externally and just typing the contents of the JS file straight in. Neither worked.
Following the booking companies provided instructions they state to add the
<script type=”text/javascript” src=”<External JS File>”></script>
to either the header.php or footer.php towards the bottom.
Whichever one I choose (or if i just put this in the same page as where I want the content to go) , I can see that it’s being requested and successfully loaded.
I still get a blank space on the page wherever I enter the second lot of code instead of the booking widget loading – the full code still appears though in the page source – just nothing renders :
While on my static HTML page with the exact same code it loads up the booking widget properly.
As amended to my earlier post – I just did some test installations of WordPress 4.9.10 and 5.0.4 – both of those displayed the booking widget properly so it seems like something was edited in the newer WordPress releases (possible for security?)
Forum: Fixing WordPress
In reply to: External Javascript Not Working?Quick update – after noticing my web host allows multiple WordPress version installs via Softaculous I have done some more research:-
WordPress 4.9.10 – Works
WordPress 5.0.4 – Works
WordPress 5.1.1 – Doesn’t Work
WordPress 5.2.2 – Doesn’t WorkSo something happened in the 5.1 update to change the way JavaScript works? Can anybody elaborate?