Community Forums › Forums › Archived Forums › Design Tips and Tricks › [Help]Top Menu Bar in News pro Theme
Tagged: news pro theme, top menu
- This topic has 7 replies, 5 voices, and was last updated 11 years, 1 month ago by
gstarr.
-
AuthorPosts
-
October 1, 2014 at 6:43 am #126415
henridelbosque
MemberSo I am running this site with News pro theme and it works fantastic. But I need to do a little change. Would it be possible to change the menu position from above the header to the top of the site?
If so, how could I do it. It would be perfect to make it black, like the footer in News pro theme.
Thanks 🙂
The site is http://www.saludavia.com/
October 1, 2014 at 8:49 am #126429cwalsh
MemberJust to clarify you want to remove the extra space above the primary menu and then make the whole thing black?
Need website customization services or other help? Caley @ PixelPerfect Design Studio | Connect with me on Twitter: @pixelsperfect | Like me on Facebook: https://www.facebook.com/PixelPerfectDesignStudio
October 3, 2014 at 9:20 am #126679henridelbosque
MemberSorry for the late reply.
Right now the menu above the header is like this:

But I want it like this:

As you can see, the menu has a white background. I need it to be black with white fonts. I can deal with the CSS though. I just need to move the menu.
October 3, 2014 at 9:47 am #126685DTHkelly
MemberNews Pro, functions.php at line 62
//* Reposition the secondary navigation remove_action( 'genesis_after_header', 'genesis_do_subnav' ); add_action( 'genesis_before_header', 'genesis_do_subnav' );1. Select the genesis hook for your desired location. Possibly
genesis_before2. Back up your site. PHP mistake(s) result in White Screen of Death
3. Revise the php snippet to include the hook you selected:
News Pro is using
genesis_before_headerfor subnavReplace line 62 - 64 in your News Pro childtheme's functions.php
//* Reposition the secondary navigation remove_action( 'genesis_after_header', 'genesis_do_subnav' ); add_action( 'genesis_before', 'genesis_do_subnav' );October 3, 2014 at 3:20 pm #126707henridelbosque
MemberYeah, it worked. But now all the menu items are aligned in the left... with no padding. I need all the menu Items align with the site wrap.
October 3, 2014 at 5:50 pm #126711bandj
Membergive a margin: 0 auto; to the nav wrap
October 4, 2014 at 12:51 pm #126765henridelbosque
MemberYeah, I was looking for that, but didnt find such objet in the css file.
November 14, 2014 at 1:56 pm #131553gstarr
MemberThanks for this tip Kellylise, I was able to move secondary menu below the main menu. It looks like this hook system ain't that hard to understand.
I have one question though.
In my case I wanted to move secondary menu below the main one.
I did the following:
//* Reposition the secondary navigation
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_after_header', 'genesis_do_subnav' );Now I have two classes remove action and add action which are the same.
Is that still ok to do? -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.