• Hello, I am having an issue I can;t resolve as yet. Am running the FlyingNews theme.

    I have set up my menus correctly, and everything seems good except when I visit our site on my cell phone, the drop-down menu does not link to the categories it’s supposed to.

    The menu shows the options, and when I select my option it simply stays on the same page, showing my selection in the menu box.

    I can;t find any settings for this, and have combed the back-end from head to toe.

    My coding looks like this for the Header menu which is having issues, can anyone tell me what’s wrong?

    <?php if (jwOpt::get_option('menu_type', 'menu-1') == 'menu-1') { ?>
                                <nav class="top-bar top-bar-jw" role="navigation">
                                    <section>
                                        <?php
                                        $a = wp_nav_menu(array(
                                            'theme_location' => 'primary_navigation',
                                            'container' => 'false',
                                            'menu_class' => 'top-nav',
                                            'menu_id' => 'jw',
                                            'echo' => false,
                                            'before' => '',
                                            'after' => '',
                                            'link_before' => '',
                                            'link_after' => '',
                                            'depth' => 0,
                                            'items_wrap' => '<ul class="">%3$s',
                                            'walker' => new jwMenu())
                                        );
                                        ?>
                                        <?php echo $a ?>
                                        <div class="clear"></div>
                                    </section>
                                </nav>
    
                                <nav class="top-bar mobile-menu mobile-menu-visble expanded" role="navigation">
    
                                    <section>
                                        <?php
                                        wp_nav_menu(array(
                                            'theme_location' => 'primary_navigation',
                                            'container' => 'false',
                                            'menu_class' => 'top-nav',
                                            'menu_id' => 'mobile',
                                            'echo' => true,
                                            'before' => '',
                                            'after' => '',
                                            'link_before' => '',
                                            'link_after' => '',
                                            'depth' => 0,
                                            'items_wrap' => '<ul class="left">%3$s',
                                            'walker' => new jwMenuMobile())
                                        );
                                        ?>
                                    </section>
                                </nav>
    
                                <nav class="mobile-menu-selectbox" role="navigation">
                                    <?php
                                    wp_nav_menu(array(
                                        'theme_location' => 'primary_navigation', // your theme location here
                                        'walker' => new jwMenuSelecetBox(),
                                        'items_wrap' => '<select class="mobile-selectbox"><option>'.__('Go to ...','jawtemplates').'</option>%3$s</select>',
                                    ));
                                    ?>
                                </nav>
                            <?php } ?>
                        </header>
                    </div>

    [Moderator Note: Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Menus won't link to category on mobile site’ is closed to new replies.