• On mobile devices, primary menu items with sub-items are not displayed.

    An earlier thread on this subject has been marked as resolved, but I am experiencing the same problem with current versions. I’m using WP 5.8.1 with theme Pure and Simple 3.2.0 and, with or without, “Enable jQuery Migrate Helper” 1.3.0, I still see this problem on mobile devices.

    Can anyone recommend a workaround other than switching themes?

    TIA.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I had the same issue with the pure and simple free theme and just fixed it by making the following edit to puresimple-extras.js. I replaced the commented out line with line below it. It looks to me like the toggle event was attaching to the menu item rather than the sub menu items, but I’m not sure if I have caused other issues with this change. I’ll monitor… seems to work so far.

    // jQuery script for toggle menu
    jQuery(function($) {
        
    ...
    
    //		$(children_link_main).find('a').toggle(function(){
    		$(children_link).find('a').toggle(function(){
    			$(this).find('i').removeClass('fa-plus');
    				$(this).find('i').addClass('fa-minus');
    				$("ul.sub-menu li").show();
    		},
    		function() {
    				$(this).find('i').removeClass('fa-minus');
    				$(this).find('i').addClass('fa-plus');
    				$("ul.sub-menu li").hide();
    		});
    ...
    });
    • This reply was modified 3 years, 5 months ago by tvars.
    • This reply was modified 3 years, 5 months ago by tvars.
    • This reply was modified 3 years, 5 months ago by tvars.

    Ok after reading a bit more in this forum, I also found that enabling “Enable jQuery Migrate Helper” plugin, then selecting “Legacy 1.12.4-wp” in the plugin config screen also fixes it, so I have reverted my change.

    Thread Starter o771

    (@o771)

    Thanks for that! Configured to use “Legacy 1.12.4-wp” it works for me too. Not sure why I didn’t spot the earlier thread that documents this. Must try harder…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Menu item with submenu not showing on mobile’ is closed to new replies.