Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1239382

    Hi

    I have to add the following to place an external hotel booking widget
    <div class=”ibe” data-region=”apac” data-channelcode=”diamondbeachresortdirect” data-widget=”property_grid”></div>

    I also have to
    ADD THE FOLLOWING SNIPPET JUST BEFORE THE CLOSING BODY TAG(</BODY>):
    <script src=”https://widget.siteminder.com/ibe.min.js”></script&gt;

    I hve tried to add it to my child function file but must be doing something wrong

    can someone help me out please

    #1239399

    Hey smarta-brett,

    Please remove it and add this at the bottom of your child theme’s functions.php:

    function custom_footer_script() {
    ?>
    <script src="https://widget.siteminder.com/ibe.min.js"></script>
    <?php
    }
    add_action('wp_footer', 'custom_footer_script');

    Best regards,
    Nikko

    #1239403

    brilliant – worked like a charm !!

    #1239416

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘adding script to closing body tag’ is closed to new replies.