Hello TRYING TO ADD A HOTEL BOOKING PLUGIN
I’m Please needing to add this to my head section in the child theme
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js”></script>
<script src=”https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js”></script>
<link rel=”stylesheet” href=”https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css”>
Assing A class QuickSearch in the BODY
AND FINALLY ADD THIS
<div class=”quickSearch”></div>
<script src=’https://scripts.resasecure.net/serv_jScript/webLibraries/js/ext/HNEwidget.js’></script>
<script type=”text/javascript”>
jQuery(document).ready(function () {
jQuery(‘.quickSearch’).HNetBOL({
hotel: (insérer code Hotel fourni),
hasPromo: true,
maxNights: 30,
maxAdults: 4,
maxRooms: 4,
maxChildren: 3,
maxChildAge: 12,
language: ‘fr’,
forceVertical: false,
hasBestPrice: true,
availableDate: ”,
themeActionColor: ”,
themeActionTextColor: ”
});
});
</script>
Hey alvarez,
You can add the code in the functions.php using the snippet below
function addCustomScript(){
?>
<script>
// your code goes here
</script>
<?php
}
add_action('wp_head', 'addCustomScript');
If you need further assistance please let us know.
Best regards,
Victoria
Thank you victoria !!!
Hi,
Glad that we are able to help! Thanks for using Enfold and have a great day :)
Best regards,
Nikko