Community Forums › Forums › Archived Forums › Design Tips and Tricks › Secondary Menu not showing
Tagged: menu
- This topic has 6 replies, 2 voices, and was last updated 10 years, 5 months ago by azparis.
-
AuthorPosts
-
October 17, 2013 at 3:21 pm #67219azparisMember
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/October 17, 2013 at 3:48 pm #67225nutsandboltsMemberTo 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/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+October 17, 2013 at 4:04 pm #67228azparisMemberYes, 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' ),
) );October 17, 2013 at 4:21 pm #67230nutsandboltsMemberOkay, 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/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+October 17, 2013 at 4:33 pm #67231azparisMemberPrimary 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?
October 17, 2013 at 4:46 pm #67232nutsandboltsMemberI 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/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+October 18, 2013 at 9:55 am #67344azparisMemberI 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!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.