Hi
I am trying to add a booking widget to my website.
I have been given the following instructions:
————————————————————————————–
IMPORTANT: Place the last two lines at the end of the of the html body.
Copy and paste the code below into your website to use your custom widget
<div id=”rd-widget-frame” style=”max-width: 600px; margin: auto;”></div>
<input id=”rdwidgeturl” name=”rdwidgeturl” value=”https://booking.resdiary.com/widget/Standard/DropShotDigbeth/11422?includeJquery=false” type=”hidden”>
<script type=”text/javascript” src=”https://booking.resdiary.com/bundles/WidgetV2Loader.js”></script>
———————————————–
So if I copy and paste the first line into a code block (on the layout builder) where should I place the last two lines?
Sorry my coding/html knowledge is awful.
Thanks
ODP
Hey onedesignprint,
Should it go just before the closing body tag? If so then you can try this in your functions.php file:
function odp_add_custom_code(){
?>
<div id=”rd-widget-frame” style=”max-width: 600px; margin: auto;”></div>
<?php
}
add_action('wp_footer', 'odp_add_custom_code');
Best regards,
Rikard
Hi Rikard
Thanks for your reply. This has now been resolved.
The original coding I was supplied was incorrect!
Thanks
ODP
Hi,
Glad Rikard could help, we will close this now. Thank you for using Enfold.
For your information, you can take a look at Enfold documentation here
For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)
Best regards,
Mike