• Hi

    I have been using the Moesia theme for a while now and a wanted to use an appointments plugin. The best plugin we found was this one: Appointments
    The problem is that the next month / previous month buttons don’t work as the theme has some conflicting javascript not allowing it to function.

    Here was my post on the plugin support forum where I was advised to ask here: link

    Can you help me with this please?

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello there,

    Sorry for the inconvenience, I am wondering if smooth back to top scrolling button script accidentally interferes the appointments next/prev button’s AJAX behavior. To troubleshoot, please edit the js/scripts.js file of Moesia. Then remove this code block:

    
    //Smooth scrolling
    jQuery(function($) {
        $('a[href*="#"]:not([href="#"],[class*="tab"] a,.wc-tabs a, .activity-content a)').click(function() { 
    		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
    			var target = $(this.hash);
    			var topbar = $('.top-bar').height();
    			target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
    			if ( this.hash != '#site-navigation' && $(window).width() > 1024 ) {
    				if (target.length) {
    				$('html,body').animate({
    				scrollTop: target.offset().top - topbar + 40
    				}, 800);
    				return false;
    				}
    			} else {
    				if (target.length) {
    				$('html,body').animate({
    				scrollTop: target.offset().top
    				}, 800);
    				return false;
    				}				
    			}
    		}
    	});
    });
    

    Regards,
    Kharis

Viewing 1 replies (of 1 total)
  • The topic ‘Appointments Plugin javascript conflict with theme’ is closed to new replies.