wordpress custom menu issue


I’m facing to an issue that I never saw before.

I’m building a website using elementor for some pages, and for the others pages, I build my own custom page.

I have the template tags get_header(); and get_footer(); everywhere.

My custom hamburger menu is working on all pages, excepts wordpress native pages like blog, blog posts, category or archive pages. I don’t understand because everywhere else it’s working..
Does someone has already meet this kind of issue ?

Here is my header menu code

<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'numgrade' ); ?>">
                        <div class="site-branding">
                                <p class="site-title">
                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">

                                      <image src="logo.png" alt="logo">


                            $numgrade_description = get_bloginfo( 'description', 'display' );
                            if ( $numgrade_description || is_customize_preview() ) :
                                <p class="site-description"><?php echo $numgrade_description; /* WPCS: xss ok. */ ?></p>
                            <?php endif; ?>
                        </div><!-- .site-branding -->

                        <div class="hamburger">
                          <span class="line"></span>
                          <span class="line"></span>
                          <span class="line"></span>
                        wp_nav_menu( array(
                            'theme_location' => 'menu-1',
                            'menu_id'        => 'primary-menu',
                        ) );
, blogob 4 years 2020-03-26T16:52:44-05:00 0 Answers 109 views 0

Leave an answer