-
AuthorPosts
-
August 17, 2018 at 10:15 am #998353
<script type=”text/javascript” src=”//www.cqc.org.uk/sites/all/modules/custom/cqc_widget/widget.js?data-id=1-2810512121&data-host=www.cqc.org.uk&type=location”></script>
August 17, 2018 at 10:37 am #998357how do you try to embed this?
August 17, 2018 at 11:11 am #998366With a code snippet and in a text field using ‘text’
Neither works – simply deletes all content from the page
August 17, 2018 at 11:21 am #998367so – please post the snippet to see if it is maybe the reason for complication
August 17, 2018 at 12:50 pm #998394<script type=”text/javascript” src=”//www.cqc.org.uk/sites/all/modules/custom/cqc_widget/widget.js?data-id=1-2810512121&data-host=www.cqc.org.uk&type=location”></script>
This is from the governing body
August 17, 2018 at 12:51 pm #998396We must dispute this or my client will get a heavy fine
August 17, 2018 at 12:51 pm #998397Display… Not dispute
August 17, 2018 at 1:40 pm #998437Hi whdsolutions,
Best regards,
VictoriaAugust 17, 2018 at 2:51 pm #998461Just needs to be shown on the page https://medi4.co.uk/about-medi-4-ambulance-services/
It’s not on their as it kills the page at the moment
I have asked the client to check the integrity of the script – will come back to you.
August 18, 2018 at 6:27 am #998636Hi,
Thanks for the feedback, just let us know when you have more information on the script.
Best regards,
RikardAugust 18, 2018 at 1:01 pm #998699but sorry but again the question : how do you try to embed this?
On Enfold ( and on other Themes too) you can not enter a script in a site by putting a script in a text-area as you like.
https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/scroll down to : https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#add-a-script-to-head-section
or below to see how to insert in footer.Or to enqueue a custom external script: https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#load-shortcodejs-from-child-theme-folder
you can do that for single pages, page arrays , categories or single posts only etc
August 18, 2018 at 1:07 pm #998703by the way ( i guess Yigit does it) very good structure now on documentation page: https://kriesi.at/documentation/enfold/: well done – Now it just has to be read by the users ;)
August 18, 2018 at 3:08 pm #998718That’s wierd because I have done this before 3 times on http://www.linkability.org.uk
All on home page
August 18, 2018 at 5:00 pm #998728Hi,
If you want to embed the script on certain pages only you can use the “Code” element of the advanced layout builder. Make sure the script uses the right quotes
<script type="text/javascript" src="https://www.cqc.org.uk/sites/all/modules/custom/cqc_widget/widget.js?data-id=1-2810512121&data-host=www.cqc.org.uk&type=location"></script>
If you want to load it on all pages you can use this php function – add it to your child theme functions.php:
function avia_custom_footer_javascript() { ?> <script type="text/javascript" src="https://www.cqc.org.uk/sites/all/modules/custom/cqc_widget/widget.js?data-id=1-2810512121&data-host=www.cqc.org.uk&type=location"></script> <?php } add_action('wp_footer', 'avia_custom_footer_javascript');
Best regards,
DudeAugust 18, 2018 at 5:03 pm #998729hey Dude – I can’t understand why it should work there (see link above) either.
to be shure that you have no curly exclamation mark issues on that can you please try this by copy&paste in your text :
<script src="https://www.cqc.org.uk/sites/all/modules/custom/cqc_widget/widget.js?data-id=1-2810512121&data-host=www.cqc.org.uk&type=location" type="text/javascript"></script>
check if you have different plugins on those pages – and first try to test if there is a conflict by deactivating those.
- This reply was modified 6 years, 3 months ago by Guenni007.
August 21, 2018 at 3:11 pm #999851AMAZING !!!!
Thank you so much!
August 21, 2018 at 9:47 pm #1000034Hi whdsolutions,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.