Custom js file not loading in wordpress

I am trying to run some javascript libraries in wordpress for a finance calculator. I can run this calculator no problem stand alone, just as a html file. see link here http://78.129.155.241/~ryedalel/calculate/

This works fine but as soon as I try to make a page in wordpress to display this calculator it does not work. See this link http://78.129.155.241/~ryedalel/calculate-wordpress/

I have disabled all plugins and changed to default theme but the error still remains. I have also followed various tutorials to correctly enqueue the script as required by wordpress but still the error is there.

This is the first time I have tried to add custom javascript to wordpress so I’m probably missing something fundamental here but I have no idea what.

Can anyone point me in the right direction?

The calculator code is below:

Finance options with Black Horse

How much are you looking to finance, and for how long?

£Cost£Deposit

Duration

Repayment plan

We can offer you the following repayment plan:

Total

At % APR Representative, you'd pay that off by
* Finance is subject to status and is only available to UK residents aged 18 and over. Finance provided by Black Horse Limited, St William House, Tresillian Terrace, Cardiff CF10 5BH.

Ryedale Caravans is authorised by the FCA with Limited Permission to conduct certain credit related activity
We are a credit broker/intermediary and can introduce you to a limited number of lenders who provide funding. We may receive commission or other benefits for introducing you to such lenders.

/script>'

Read more here: Custom js file not loading in wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *