Responsive WordPress Theme – Caliber

A theme with simple controls and limitless potential. Work fast and build an amazing website!   Find out more »

UpThemes – Beautiful WordPress Themes

Create a site your church, gallery, newspaper, blog, recipes, band and more!   See the themes »

Need a little help?  Find answers quickly by searching the forum.
Group Admins
  • andy
  • jeffw

Support for: Razor: Cutting Edge WordPress Theme

Razor

Public Group  |  active 1 year, 9 months ago ago
Viewing post 1 to 5 (5 total posts)

Wrong menu showing

  • jsainteractive

    said

    I am trying to get this menu to work in this Razor theme but it’s not working Like it should.

    I added this code to functions.php:

    #----------------------------------------------------------------
    # Add New Footer Menu
    #----------------------------------------------------------------
     
    add_action( 'init', 'register_footer_menu' );
    function register_footer_menu() {
      register_nav_menu( 'custom-footer-menu', __( 'Custom Footer Menu' ) );
    }
     
    

    This created a new menu I could add items to on the backend.

    However when I try to display it in design-footer.php using this code:

    wp_nav_menu( array( 'theme_location' => 'custom-footer-menu' ) );
    

    It only wants to display the main menu. I have tried changing the name and checked my code several times. Everything looks good. If you use a sidebar widget and select the custom footer menu, the sidebar will only output the main menu on the front end.

    I think this is a bug within the Razor theme.

  • jeffw

    said

    Have you switched to a default WordPress theme, such as Twenty Fifteen for example, and tested your customisations with that theme?

Viewing post 1 to 5 (5 total posts)
Topic tags: add new menu, custom menu, only shows main menu, wrong menu displaying