Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #930222

    Hello Friends
    Ismael One’s solved this but it was confident
    Here is my siituation: I need to add a bookin Jquery plugin, I have This:
    <script src=”https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js”></script&gt;
    <script src=”https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js”></script&gt;
    <link rel=”stylesheet” href=”https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css”&gt;
    and this

    <div class=”quickSearch”></div>

    <script src=’https://scripts.resasecure.net/serv_jScript/webLibraries/js/ext/HNEwidget.js’></script&gt;

    <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>

    PLEASE HELP !!!
    THANKS

    #930405

    Hey alvarez,

    <div class=”quickSearch”></div> 

    – this you need to add to the page, where you want it to appear.

    The rest you need to put inside a function and add the code to the functions.php, like so:

    
    function addCustomScript(){
    ?>
    <script>
     
    // your code goes here
     
    </script>
    <?php
    }
    add_action('ava_after_main_menu', 'addCustomScript');
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #930466
    This reply has been marked as private.
    #930637

    Hi,

    To add your custom script or a js file please refer to the link in private content.

    Hope this helps :)

    Best regards,
    Vinay

    #949285

    Hello my code works fine thanks you
    now how to obtain a new windows tab target=”_blank”
    HERE:
    <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>

    THANKS AGAIN

    #950541

    Hi,

    Where do you want to want to put a link? The target attribute should be added to a link tag. Please provide a link to the page where you’re testing the script.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.