Viewing 8 replies - 1 through 8 (of 8 total)
  • The solution given there is NOT a general solution but only works for that specific site/theme.

    I’d have to check the site in question to see what the issue is and if there’s a solution available for it.

    Thread Starter BeamX1

    (@beamx1)

    This is my site https://wpsoftreviews.com/ but there is no content yet. But you can check on the CONTACT page because there the you can scroll. Would be great if you could take a look.

    This is the code that should make it work again:

    $( document ).ready(function() {
    	$( '.cloned a' ).sidr( {
    		name	: 'sidr-main',
    		source	: '#sidr-close, #site-navigation',
    		side	: 'left'
    	} );
    });

    I’m not really sure what’s the best place to put it exactly. I can’t test it myself since I don’t have a copy of the theme, but if you call it after plugins.js, it should be fine.

    Thread Starter BeamX1

    (@beamx1)

    Thanks, I will test it and give feedback tomorrow.

    Thread Starter BeamX1

    (@beamx1)

    I can’t get it to work, unfortunately. I could add you as a new users so that you can login and check yourself, if you are OK with that? Let me know and I will email you the login details. Thanks anyway!

    Thread Starter BeamX1

    (@beamx1)

    Mark, I forgot that there is a free version of the theme available here: https://www.wpexplorer.com/corporate-free-wordpress-theme/ …it’s almost the same, the only difference is that it doesn’t have the extras available in the premium version. But for testing it should do in case you want to check. Thanks.

    OK so I did some tests: https://wp.senff.com

    I’ve used the free version of the theme and made #site-navigation-wrap my sticky element. Out of the box, the mobile menu trigger would not open the menu when it’s sticky.

    However with the JavaScript tweak that I posted above, it works fine.

    If you look at https://wp.senff.com/wp-content/themes/wpex-corporate/js/global.js?ver=2.0.1 you’ll see where I’ve added the code.

    Of course, this is NOT the right place to paste the code because it would get overwritten once the theme would get an update. You could either put it in the footer, or in another custom jQuery file if you have one.

    I’d say there’s nothing wrong with the code itself, but you may have made a mistake in implementing it in the right place?

    You could send me a link to your site in private if you want me to check it, in that case please use the Contact form on https://www.senff.com

    Thread Starter BeamX1

    (@beamx1)

    Mark, thanks for your efforts and putting in the time in testing, much appreciated! I just re-tested the whole thing and it works now. Yea!

    I guess when the next theme update comes I have to re-edit the code, but this is not a big issue for me, for now I leave the code were it is.

    Have a nice weekend!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Issue on mobile menu view’ is closed to new replies.