• Resolved anphira

    (@anphira)


    Hi,

    I’m trying to use this plugin on a site with ubermenu. Unfortunately, it’s conflicting with ubermenu. Ubermenu works fine, but once ubermenu is activated, the popup plugin stops working. Uber is a pretty popular and common plugin, so if you have anything you can do to get this working with it, that would be great.

    https://ww.wp.xz.cn/plugins/popup-maker/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    Do you have a link I can look at where the problem exists. I have other users using both successfully. The only way that an issue like your describing occurs generally speaking is if there is a JS error. Errors in our scripts are rare as we have built in error checking for most functionality which prevents errors from stopping the scripts from running.

    That said they do occur, but I will need to see it in action to know what is going on for sure.

    Thread Starter anphira

    (@anphira)

    http://pooltroopers.dev-design-sites.com/testing/

    If I go to plugins and deactivate ubermenu (uber 3), the popup for “Read More” works, as soon as I activate ubermenu it stops working.

    Plugin Author Daniel Iser

    (@danieliser)

    Checking now, please be sure that both are active so the bug occurs.

    Thread Starter anphira

    (@anphira)

    Both active, bug alive and well (I checked several browsers, fully broke on all)

    Plugin Author Daniel Iser

    (@danieliser)

    @anphira – Ok so we have a few issues we need to work out before we can see if there is really a problem or not.

    1) You are loading multiple copies of jQuery which is a major issue. You are loaidng both jquery.js (WP Built in version), and jquery.min.js from Google api. One needs to be removed, both are the same version but once the second loads it causes major issues.

    Likely it is hard coded into your themes footer or possibly enqueued under a different handle other than ‘jquery’.

    This in simple terms is like 2 separate universes. Uber menu and Popup maker load in the first universe, and once the second loads the browser forgets about the first, so when things try to run based on what is in the first universe, the browser throws errors as they don’t exist in the other.

    2) Not a major issue but your loading both Analytics.js and ga.js. They can run both but likely you don’t need to.

    3) This one is a bug causing JS to stop once it runs.

    In your head this appears.

    jQuery(document).ready(function() {
    
    	$(".video").click(function() {
    		$.fancybox({
    			'padding'		: 0,
    			'autoScale'		: false,
    			'transitionIn'	: 'none',
    			'transitionOut'	: 'none',
    			'title'			: this.title,
    			'width'			: 640,
    			'height'		: 385,
    			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
    			'type'			: 'swf',
    			'swf'			: {
    			'wmode'				: 'transparent',
    			'allowfullscreen'	: 'true'
    			}
    		});
    
    		return false;
    	});
    
    });

    Simply changing the first line to be

    jQuery(document).ready(function($) {

    Should resolve that issue. If not then we need to replace $( and $. with jQuery( and jQuery.

    Once those issues get worked out we can recheck, all those JS issues though can wreak havok on JS heavy plugins like Ubermenu and Popup Maker.

    Thread Starter anphira

    (@anphira)

    ***THANK YOU*** — the function($) fixed it.

    YOU ROCK!!!! THANK YOU!!!!!!!!!!!!!!!

    Plugin Author Daniel Iser

    (@danieliser)

    @anphira Not a problem, you will still want to figure out at least issue #1 from above as it will cause further problems down the line. Glad its working now.

    Please take a moment to rate and review the plugin and or support.

    Thread Starter anphira

    (@anphira)

    Just left a review and will get a javascript guy I know to work on the multiple jQuery issue next week (he’s away sadly).

    Plugin Author Daniel Iser

    (@danieliser)

    Awesome. Its just one of those things better to get it worked out now than find more bugs later.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Conflict with Ubermenu’ is closed to new replies.