Urgente: Mobile Menu not working correctly on xStore v.9.6.1 and Core v.5.6.1

Solved11 replies3 participantsUpdated by Tony Rodriguez

XStore documentationXStore mobile header and mobile menu
  • Avatar: inigo
    Iñigo
    Participant

    Hi, we’ve noticed that in any product category using WooCommerce with xStore latest version (theme and plugin), the “Mobile menu” under “Header Builder” is not working correctly. While trying to view a subcategory, the menu suddenly closes by itself. We’ve tried changing the settings with de “Dropdown opening action” but nothing changes. Please see attachments.

    Please, contact administrator
    for this information.

    11 Answers

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Iñigo,

    We have reviewed your website but did not find any issues. Could you please check it again or adjust the settings so that we can replicate the issue on our side? Additionally, please provide temporary wp-admin access in the private area.

    Best regards,
    The 8Theme Team

    Avatar: inigo
    Iñigo
    Participant

    Hi Jack, we’ve been able to solve it in production with a hotfix but i’ve made an staging site with the error again so you can solve it for the next update. the class <span class=”open-child”></span> its duplicated. Thank you

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Iñigo

    Could you please provide temporary wp-admin and FTP access? We will check what can be done to help you.
    To grant WP-Admin access, please proceed to create a new user account with an administrator role through your WordPress Dashboard. Once the account is established, you may securely transmit the username and password to us via the Private Content section designated for this purpose.

    For FTP access, we require the following details: FTP host, FTP username, FTP password, FTP port, and FTP encryption type. If you need assistance in creating these credentials, please reach out to your hosting provider who will guide you through the process.

    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: inigo
    Iñigo
    Participant

    Please check private content area

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Iñigo,

    If the issue appears only on your staging website and you have already resolved it on your live website, could you please clarify the solution you implemented there? We do not encounter this issue on our local websites, so we need to examine it in detail on your staging website. It is possible that some files were modified directly in the theme or the XStore Core plugin, which might explain why the issue occurs only on your website.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: inigo
    Iñigo
    Participant

    Hi Jack, we’ve used a custom script to remove the duplicated item:

    (function($){
    	function dedupeOpenChildSpans(){
    		$('.mobile-menu-content .menu li:has(ul) > a, .et_b-tab-content .widget li:has(ul) > a').each(function(){
    			var $spans = $(this).find('> .open-child');
    			if ($spans.length > 1) {
    				$spans.slice(1).remove();
    			}
    		});
    	}
    
    	function ensureSingleClickBinding(){
    		var $targets = $('.mobile-menu-content .menu, .et_b-tab-content .widget');
    		$targets.off('click', 'li:has(ul) > a > .open-child, li:has(.menu-static-block) > a > .open-child');
    		$targets.on('click', 'li:has(ul) > a > .open-child, li:has(.menu-static-block) > a > .open-child', function(e){
    			e.preventDefault();
    			var $li = $(this).parent().parent();
    			var $parent = $li.parent();
    			if ($li.hasClass('over')) {
    				$parent.find('li.over').removeClass('over');
    				$parent.find('.nav-sublist-dropdown:not(.nav-sublist), .nav-sublist > ul, .children').slideUp(300);
    			} else {
    				$parent.find('li.over').removeClass('over');
    				$li.addClass('over');
    				$parent.find('.nav-sublist-dropdown:not(.nav-sublist), .nav-sublist > ul, .children').slideUp(300);
    				$li.find('> .nav-sublist-dropdown:not(.nav-sublist), > .nav-sublist > ul, > .children').slideDown(300);
    			}
    		});
    	}
    
    	function applyFix(){
    		dedupeOpenChildSpans();
    		ensureSingleClickBinding();
    	}
    
    	$(function(){
    		setTimeout(applyFix, 300);
    	});
    
    	$(document).on('et:mobileMenu:update', applyFix);
    })(jQuery);
    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Iñigo,

    Thank you for providing the details. Unfortunately, we were unable to reproduce the issue on our local website. You may use the following custom CSS snippet:

    div.mobile-menu-content .open-child ~ .open-child {  
        display: none;  
    }

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: inigo
    Iñigo
    Participant

    Thank you Jack

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @Iñigo,

    We appreciate your message. If your request is solved, you can mark this topic as solved.

    Best Regards,
    8Theme’s Team

    Avatar: inigo
    Iñigo
    Participant

    Thanks for the support! My topic “Urgente: Mobile Menu not working correctly on xStore v.9.6.1 and Core v.5.6.1” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Dear Iñigo,

    We really appreciate your time and engagement within the WordPress & WooCommerce community

    Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.

    💡 Share your quick thoughts — it takes less than a minute!

    Your input makes a real difference.

    Topic closed.
    The 8Theme Team

The issue related to '‘Urgente: Mobile Menu not working correctly on xStore v.9.6.1 and Core v.5.6.1’' has been successfully resolved, and the topic is now closed for further responses