• Hi,
    As you can see, when scrolling the menu adjusts height because the site logo gets smaller. It is possible to have the element “stick” to the navigation bar when scrolling. Right now, when you scroll down page it leaves a gap between the menu bar and element on Desktop view. On mobile view it is not located right at the top of the page where we would like it and cuts off a lot of information on the main view point of the screen.

    Thanks!
    Beck

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter beckhall

    (@beckhall)

    Hey team,
    Have not heard back yet, if this is not possible is there a way to put element in Menu Bar but not show on table & mobile screen?

    Thanks!

    Plugin Author Marcel Pol

    (@mpol)

    Hi,
    Please understand this is free support and not a paid job.

    You could try this code:

    function my_wp_nav_menu_top( $nav_menu, $args ) {
        if ( $args->theme_location == 'nav' ) {
            if ( function_exists('zeno_font_resizer_place') ) {
                $nav_menu .= zeno_font_resizer_place( false );
            }   
        }   
        
        return $nav_menu;
    }   
    add_filter( 'wp_nav_menu', 'my_wp_nav_menu_top', 10, 2 );

    Please check if this really is the theme location ‘nav’.

    • This reply was modified 4 years, 7 months ago by Marcel Pol. Reason: typo
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adjust element to menu when scroll’ is closed to new replies.