Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1030352

    I want to use a code provided by my patient management software which popups a floating frame in which patients can book an appointment.

    The code works, the floating button works and the floating frame works when I paste the code in the footer.php file.
    But once I do that other functions of the side don’t work as they are supposed to.

    – The mason gallery on the homepage only displays when I resize the browser windows
    – When I scroll the logo in the menu bar doesn’t get smaller (which it normally does)
    – Scrolling on mobile is broken, it either doesn’t scroll at all or not as it’s supposed to do.

    Is there something I’m overlooking or doing wrong? Should I paste it in the footer.php file? I want it to appear on every page of website.

    This is the code:

    <!-- Clinicminds Scheduler begin -->
    <a href="https://schedule.clinicminds.com/?location=2262fdad-acea-11e8-974f-0a599d16f52a" class="clinicminds-scheduler-button" data-button-position-x="left" data-button-position-y="bottom">Boek afspraak</a>
    <script src="https://schedule.clinicminds.com/assets/widget/widget.js" type="text/javascript"></script>
    <!-- Clinicminds Scheduler end -->

    Hope someone can find a solution for this.

    #1030719

    Hey Ronova,

    Please try this in your child theme functions.php file instead:

    function ronova_clinicminds(){ 
    ?>
    <a href="https://schedule.clinicminds.com/?location=2262fdad-acea-11e8-974f-0a599d16f52a" class="clinicminds-scheduler-button" data-button-position-x="left" data-button-position-y="bottom">Boek afspraak</a>
    <script src="https://schedule.clinicminds.com/assets/widget/widget.js" type="text/javascript"></script>
    <?php
    }
    add_action('wp_footer', 'ronova_clinicminds');

    Best regards,
    Rikard

    #1030773
    This reply has been marked as private.
    #1031936

    Still looking for a fix??

    #1032412

    Hi,

    Did you remove the “Boek afspraak” button? I can’t find it anywhere in the site. Do you want to open the widget inside a lightbox?

    Best regards,
    Ismael

    #1042712
    This reply has been marked as private.
    #1042904

    Hi,

    Do you have a test page where we can check it? You can clone the current home page or create a copy of it.

    Best regards,
    Ismael

    #1043070
    This reply has been marked as private.
    #1044692

    Hi,

    Thanks for the update. Try to properly enqueue the script instead of putting it directly inside a code block or the footer.

    // https://developer.wordpress.org/reference/functions/wp_enqueue_script/

    Set the “avia-default” handle as a dependency.

    Best regards,
    Ismael

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