• Hello, I would like to ask if it is possible to have a different menu when website is viewed on a computer and when using the phone?

    Particularly, I would like to merge the main header with a secondary menu in the top bar.

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @burgerino,

    I am sorry for the delay.

    Currently the theme doesn’t have an option for that. But, you still have a chance to achieve it by extending the menu functionalities with a child theme. That means, you’ll add some extra code in it. If you have some coding experiences, I believe you’ll be able to make it.

    Regards,
    Kharis

    Thread Starter burgerino

    (@burgerino)

    Thanks for looking into this.

    I am using a child theme but I am afraid I do not know how to implement this. Anyways, thanks for the response

    Thread Starter burgerino

    (@burgerino)

    Hi! I am back:) Due to my limited knowledge, I cannot solve this menu problem. I tried to use this code, but it does not show submenu items. I was wondering if it can be related to intricacies in the Botiga?

    Thanks a lot!

    
    register_nav_menus( array(
        'mobile' => 'Mobile Replace Primary',
    ) );
    
    add_filter( 'wp_nav_menu_args', function( $args ) {
    
        if( 'primary' === $args['theme_location'] && wp_is_mobile() ) {
            $args['theme_location'] = 'mobile';
        }
    
        return $args;
    } );
    

    Hi @burgerino,

    I’d recommend checking this plugin that allows you to control the menu items visibility on particular mobile screen size along with other conditionals.

    Hope that helps.

    Regards,
    Kharis

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Menu (computer vs phone)’ is closed to new replies.