Viewing 14 replies - 16 through 29 (of 29 total)
  • Hi geyslein,

    As we looked its running well.

    please insert the link into your parent menu.

    Thanks

    Hi daemonicus,

    have you replace “menu.js” file code with above js code.

    if not then open “menu.js” file into any text editor.

    Then copy the below line of code.

    jQuery(document).ready(function() {
    var bMobile;  // true if in mobile mode
    var isMobile;
    // Initiate event handlers
    function init() {
    		var isMobile = {
    				Android: function() {
    						return navigator.userAgent.match(/Android/i);
    				},
    				BlackBerry: function() {
    						return navigator.userAgent.match(/BlackBerry/i);
    				},
    				iOS: function() {
    						return navigator.userAgent.match(/iPhone|iPad|iPod/i);
    				},
    				Opera: function() {
    						return navigator.userAgent.match(/Opera Mini/i);
    				},
    				Windows: function() {
    						return navigator.userAgent.match(/IEMobile/i);
    				},
    				any: function() {
    						return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
    				}
    		};
    
    		var oMenus = jQuery('.navbar-nav  .dropdown'),nTimer;
    		if( isMobile.any() ) {
    				// Set up menu on click for Mobile and ipad mode
    				oMenus.on({
    				  'mouseenter touchstart': function(event) {
    						event.preventDefault();
    						clearTimeout(nTimer);
    						oMenus.removeClass('open');
    						jQuery(this).addClass('open').slideDown();
    				  }
    				  });
    				jQuery('ul.dropdown-menu li a').on('click touchend', function() {
    						var link = jQuery(this).attr('href');
    						window.open(link,'_self'); // opens in new window as requested
    						return false; // prevent anchor click
    				});
    		} else {
    				oMenus.on({'mouseenter touchstart': function(event) {
    				event.preventDefault();
    				clearTimeout(nTimer);
    				oMenus.removeClass('open');
    				jQuery(this).addClass('open').slideDown();
    				},
    				'mouseleave': function() {
    				nTimer = setTimeout(function() {
    				  oMenus.removeClass('open');
    				}, 500);
    				}
    				});
    			}
    		}
    jQuery(document).ready(function() {
      // Your other code to run on DOM ready...
    		jQuery(".nav .dropdown-toggle").click(function () {
    		window.location = jQuery(this).attr('href');
    		});
      init();
    });
    jQuery(window).resize(init);
    });

    replace with “menu.js” file code.

    save the changes.

    Thanks.

    Hi guys,
    but why should I put a link in the parent menu? I have a page assigned, which should have the link automatically, no? It works perfectly for the submenu but not for the main menu.

    Hi geyslein,

    Yes, you are absolutely right.

    But when you inspect the element your parent menu then you will see

    that there is no url.

    You will find out “#” into href.

    So if you click on parent menu then it’s seem to be it didn’t work.

    So please create a drop-down menu again or put page URl.

    Thanks.

    Hi,
    I compiled a new menu and it is still the same problem. I don’t think it is very useful to set a link as menu item – it means more rework when something is changed. Some other suggestions where I might find the solution?

    Thank you very much

    for parent menu, Paste following js code at the end of the /js/enigma_theme_script.js file

    jQuery(“.nav .dropdown-toggle”).click(function () {
    window.location = jQuery(this).attr(‘href’);
    });

    But if anyone know how to solve this for mobile please support
    Thanks

    Hi mshereif,

    This is bootstrap functionality.

    on mobile “onClick()” function doesn’t work.

    onTouch() function work on mobile only.

    So when you touch on parent menu then it will opened then you can’t

    open your sub menu on your mobile phones.

    Got It…

    Thanks

    Hi,
    Thanks for Clarification, I was just asking if there is any way to assist

    BR///

    Hi guys,
    I tried all your solutions and also did re-compile the menu several times. I still get no parent-menu links.

    Why is that so, that the parent-menu on the main-menu level doesn’t get the url when setting a page as menu-item? Because in the sub-menus there is no problem, here a parent menu item gets the url perfectly.

    Could it also be a wordpress rather than a menu.js/enigma theme issue?

    It was with me also, but I found conflict with “polylang” plugin,and now everything is normal.
    check your installed plugins
    BR///

    Hi geyslein,

    Please backup your code.

    And update your theme package.

    and please provide me “menu.js” file code.

    let me know for further assistance.

    Thanks.

    hey mshereif,
    what was the problem with polylang plugin exactly? I have another plugin installed, but need some hints where the issue exactly came from.

    honestly,I don’t know exactly but I observed that everything back to normal when deactivating this plugin and back to problem when reactivating it, just try to deactivate your plugin or any other one that may cause this problem

    BR///

    @mshereif

    Great work

    Thanks

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Meun not working’ is closed to new replies.