wordpress custom menu issue

Question

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">
                            <?php
                            the_custom_logo();
                            ?>
                                <p class="site-title">
                                    <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">


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


                                    </a>
                                </p>
                                <?php

                            $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>
                        </div>
                            <?php
                        wp_nav_menu( array(
                            'theme_location' => 'menu-1',
                            'menu_id'        => 'primary-menu',
                        ) );
                        ?>
                    </nav>

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/wordpress-custom-menu-issue/">

wordpress custom menu issue</a>
0
, blogob 1 week 0 Answers 36 views 0

Leave an answer