Secondary Menu not showing

Community Forums Forums Design Tips and Tricks Secondary Menu not showing

This topic is: not resolved

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  azparis 11 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #67219

    azparis
    Participant
    Post count: 18

    I’m using Blissful and for some reason my Secondary Menu isn’t showing. I have changed the menu settings to show on the secondary menu, but it’s still not showing. Any clue what I’ve done?

    http://tinkerbdesigns.com/rjctest/
    #67225

    nutsandbolts
    Moderator
    Post count: 3130

    To clarify, you’ve already checked the box under Appearance > Menus for theme locations. Is that correct? If so, you might check functions.php to make sure there are no functions preventing the secondary nav from showing up. I see that your stylesheet isn’t hiding it, but it doesn’t show up in the page source at all. So strange!


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #67228

    azparis
    Participant
    Post count: 18

    Yes, I’ve checked the box in Appearance > Menus for the locations. Here’s my functions.php code:

    <?php
    /** Start the engine **/
    include_once( get_template_directory() . ‘/lib/init.php’ );

    /** Child theme (do not remove) */
    define( ‘CHILD_THEME_NAME’, ‘Blissful Theme’ );
    define( ‘CHILD_THEME_URL’, ‘http://my.studiopress.com/themes/blissful’ );

    /** Add support for custom background */
    add_theme_support( ‘custom-background’ );

    /** Add support for custom header */
    add_theme_support( ‘genesis-custom-header’, array(
    ‘width’ => 1200,
    ‘height’ => 325
    ) );

    /** Unregister 3-column site layouts */
    genesis_unregister_layout( ‘content-sidebar-sidebar’ );
    genesis_unregister_layout( ‘sidebar-sidebar-content’ );
    genesis_unregister_layout( ‘sidebar-content-sidebar’ );

    /** Add support for 3-column footer widgets */
    add_theme_support( ‘genesis-footer-widgets’, 3 );

    /** Add new image sizes */
    add_image_size( ‘mini-thumbnail’, 75, 75, TRUE );
    add_image_size( ‘small-thumbnail’, 110, 110, TRUE );

    /** Reposition the Primary Navigation */
    remove_action( ‘genesis_after_header’, ‘genesis_do_nav’ );
    add_action( ‘genesis_before_header’, ‘genesis_do_nav’ );

    add_filter( ‘genesis_post_info’, ‘blissful_post_info_filter’ );
    /**
    * Customize the post info function
    */
    function blissful_post_info_filter( $post_info ) {
    return g_ent( ‘[post_date] by [post_author_posts_link] · [post_comments] [post_edit]‘ );
    }

    add_filter( ‘genesis_post_meta’, ‘blissful_post_meta_filter’ );
    /**
    * Customize the post meta function
    */
    function blissful_post_meta_filter($post_meta) {
    return g_ent( ‘[post_categories] · [post_tags]‘ );
    }

    add_filter( ‘genesis_author_box_gravatar_size’, ‘blissful_gravatar_size’ );
    /**
    * Modify the size of the Gravatar in the author box
    */
    function blissful_gravatar_size( $size ) {
    return 78;
    }

    add_action( ‘genesis_after_sidebar_widget_area’, ‘blissful_split_sidebars’ );
    /**
    * Add split sidebars underneath the primary sidebar
    */
    function blissful_split_sidebars() {
    foreach ( array( ‘sidebar-split-left’, ‘sidebar-split-right’, ‘sidebar-split-bottom’ ) as $area ) {
    echo ‘<div class=”‘ . $area . ‘”>’;
    dynamic_sidebar( $area );
    echo ‘</div><!– end #’ . $area . ‘–>’;
    }
    }

    add_filter( ‘genesis_footer_backtotop_text’, ‘blissful_footer_backtotop_filter’ );
    /**
    * Customizes go to top text
    */
    function blissful_footer_backtotop_filter( $backtotop ) {
    return ‘[footer_backtotop text="Top of Page"]‘;
    }

    /** Register widget areas */
    genesis_register_sidebar( array(
    ‘id’ => ‘home-top’,
    ‘name’ => __( ‘Home Top’, ‘blissful’ ),
    ‘description’ => __( ‘This is the top section of the homepage’, ‘blissful’ ),
    ) );
    genesis_register_sidebar( array(
    ‘id’ => ‘sidebar-split-left’,
    ‘name’ => __( ‘Sidebar Split Left’, ‘blissful’ ),
    ‘description’ => __( ‘This is the left side of the split sidebar’, ‘blissful’ ),
    ) );
    genesis_register_sidebar( array(
    ‘id’ => ‘sidebar-split-right’,
    ‘name’ => __( ‘Sidebar Split Right’, ‘blissful’ ),
    ‘description’ => __( ‘This is the right side of the split sidebar’, ‘blissful’ ),
    ) );
    genesis_register_sidebar( array(
    ‘id’ => ‘sidebar-split-bottom’,
    ‘name’ => __( ‘Sidebar Split Bottom’, ‘blissful’ ),
    ‘description’ => __( ‘This is the bottom of the split sidebar’, ‘blissful’ ),
    ) );

    #67230

    nutsandbolts
    Moderator
    Post count: 3130

    Okay, your functions file has the primary nav moved to the secondary spot above the header. So try setting the theme location for the menu to Primary Navigation and see if it shows up. If it does, we’ll know that it’s at least working. From there if you need it to be below the header, we’ll need to add a function to reposition the secondary nav since the primary is set to take its place. Hopefully that makes sense.


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #67231

    azparis
    Participant
    Post count: 18

    Primary Nav shows up :: above header. I want a nav below header….don’t care which one it is. I haven’t changed the coding, and the demo has both nav menus – so I’m confused. So where do I move that in the php?

    #67232

    nutsandbolts
    Moderator
    Post count: 3130

    I just loaded Blissful on a test site and was able to get the secondary nav to show up without any additional functions, so I’m really confused re: why it wouldn’t work on your site. I’d be glad to take a closer look (if you’re comfortable with that) if you want to email me directly.


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #67344

    azparis
    Participant
    Post count: 18

    I thought it was strange too, as I’ve used Blissful on many sites before….I’ll download a new copy and reupload it – maybe it will fix itself! Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.