Main Menu On Desktop

Home Forums Jevelin Theme Main Menu On Desktop

Home Forums Jevelin Theme Main Menu On Desktop

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • rcarlson88
    Participant

    Greetings,

    I’m using one of your themes that has a mobile menu on the desktop.

    So when people need to navigate, they simply click the icon (three small lines) in the upper right hand corner.

    Here is my problem.

    Several of my navigation items link to anchor links. When they click on a navigation link … it successfully takes them to the right page/section … however, it doesn’t automatically close the menu.

    I would like the menu to close automatically after a person clicks on an anchor link in my navigation.

    I implemented the custom plugin colorlib-devilab-plugin that was provided here:

    https://support.shufflehound.com/forums/topic/main-menu-on-mobile/#post-47622

    However, this only solved the problem for the mobile phone.

    I’m needing for the automatic closer of the menu to work on a desktop as well.

    Please advise?

    Thanks,

    Ron

    Hi Ron,

     

    I hope you are well today and thank you for your question.

     

    Could you please share your site URL where it’s displaying so that I can help you to achieve it?

     

    Best regards,
    Shufflehound team

    rcarlson88
    Participant

    Greetings,

    The URL is: https://www.arta-facts.com

    Thanks,

    Ron

    Please try changing the custom plugin code as below.

     

    function add_custom_scripts(){ ?>
    	<script type="text/javascript">
    		jQuery(document).ready(function($){
    			$('.sh-header-mobile-dropdown .sh-nav-mobile li').click(function(){
                                $('#header-navigation 
     .c-hamburger').trigger('click');
                            });
    		});
    	</script>
    <?php }
    add_action('wp_footer', 'add_custom_scripts', 99);
Viewing 4 posts - 1 through 4 (of 4 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form