Community Forums › Forums › Archived Forums › Design Tips and Tricks › Primary navigation menu below logo – eleven40
Tagged: header, Logo, primary nav
- This topic has 8 replies, 2 voices, and was last updated 10 years ago by
Christoph.
-
AuthorPosts
-
November 19, 2015 at 1:51 pm #171564
holster
MemberHello,
Total newbie and having an issue with what seems a simple fix.
Want the logo above my primary navigation menu like at http://www.studiopress.community/topic/eleven40-pro-need-to-center-logo/.
I added this into the functions.php file with the hopes of just moving the navigation menu at all, but it didn't work:
//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );Any help would be great!
http://learningwithblank.com/November 20, 2015 at 2:00 pm #171662Christoph
MemberHi,
the code snippet does not work, because the primary navigation has already been repositioned:
//* Reposition the primary navigation menu remove_action( 'genesis_after_header', 'genesis_do_nav' ); add_action( 'genesis_header', 'genesis_do_nav', 12 );You can simply change this add_action in the functions.php (and remove the code snippet you put in)
November 20, 2015 at 10:28 pm #171693holster
MemberSo I removed the code snippet. But when I change this add_action nothing happens...???
How does it need to be modified to get the primary nav after the header?
I changed the add action to:
`add_action( 'genesis_after_header', 'genesis_do_nav', 12 );
Cheers for the reply!
November 20, 2015 at 10:38 pm #171694Christoph
MemberWell... if your remove_action and add_action use the same hook, nothing can happen...
If you want to move the primary navigation to the position of the snippet you posted, you have to use the hook genesis_before_header in the add_action.
In other words, replace the add_action in the functions file with the add_action from your snippet.
November 20, 2015 at 10:52 pm #171695holster
MemberStill not working. Here is the modified code in the functions file:
//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( ‘genesis_before_header’, ‘genesis_do_nav’ );The primary nav bar is only visible when it's in the header. I can't seem to move it above or below the header, or maybe it's just not visible?
November 21, 2015 at 11:46 am #171710Christoph
MemberIt´s there. You just have to adjust the css.
November 23, 2015 at 11:03 am #171837holster
MemberAny suggestions of where to start with .css adjustments? Thanks for all your help thus far.
November 23, 2015 at 11:04 am #171838holster
MemberI've tried all sorts of adjustments but nothing seems to happen
November 23, 2015 at 11:47 am #171839Christoph
MemberYou have to make the menu "visible" first.
Try adding a color to
.nav-primary .genesis-nav-menu > .menu-item > a {and/or add a background-color to
.nav-primary {
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.