
-
AuthorPosts
-
November 6, 2018 at 12:09 pm #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.
November 7, 2018 at 8:16 am #1030719Hey 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,
RikardNovember 7, 2018 at 10:11 am #1030773This reply has been marked as private.November 10, 2018 at 8:36 am #1031936Still looking for a fix??
November 12, 2018 at 4:35 am #1032412Hi,
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,
IsmaelDecember 9, 2018 at 11:41 am #1042712This reply has been marked as private.December 10, 2018 at 5:48 am #1042904Hi,
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,
IsmaelDecember 10, 2018 at 1:46 pm #1043070This reply has been marked as private.December 13, 2018 at 5:46 am #1044692Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.