Tagged: nav bar omega header position
- This topic has 16 replies, 6 voices, and was last updated 11 years, 8 months ago by
han.
-
AuthorPosts
-
October 21, 2013 at 8:14 am #615
pooleroid
ParticipantHello,
I’m having some problems in modifying your beautiful theme, is there a way to put the navigation bar after (under) the header?
Your help would be really appreciated 🙂
Thanks and congratulation for your work again!
PaoloOctober 21, 2013 at 10:55 am #623han
KeymasterIt’s pretty easy to move the menu below the header. Simply put below code into your child theme functions.php
add_action( 'after_setup_theme', 'child_theme_setup', 11 ); function child_theme_setup() { remove_action( "omega_before_header", 'omega_get_primary_menu' ); add_action( "omega_after_header", 'omega_get_primary_menu' ); }October 21, 2013 at 11:07 am #624pooleroid
ParticipantThank you one thousand times han, and congratulation again on your work.
October 21, 2013 at 11:11 am #627han
KeymasterYou’re most welcome. Just moved this topic under Omega forum.
November 4, 2013 at 2:30 am #753tomw
ParticipantI attempted adding the following code at various locations in the child theme functions.php with no effect on the nav bar position…
add_action( ‘after_setup_theme’, ‘child_theme_setup’, 11 );
function child_theme_setup() {
remove_action( “omega_before_header”, ‘omega_get_primary_menu’ );
add_action( “omega_after_header”, ‘omega_get_primary_menu’ );}
November 4, 2013 at 2:32 am #754han
KeymasterWhat child theme you use?
November 4, 2013 at 2:32 am #755tomw
ParticipantChurch theme
November 5, 2013 at 2:54 am #779tomw
ParticipantWhen I place the suggested code into the child Church theme theme functions.php the following error results:
Fatal error: Cannot redeclare child_theme_setup() (previously declared in …../html/wp-content/themes/church/functions.php:60) in …/html/wp-content/themes/church/functions.php on line 277
November 6, 2013 at 10:00 am #792han
KeymasterFor church theme,find
add_action( 'omega_after_header', 'church_banner' );and replace withadd_action( 'omega_after_header', 'church_banner',5 );March 20, 2014 at 2:53 pm #1943wattersk
ParticipantHELP! Where, exactly, do we put this code of Church child theme? Thanks much in advance.
March 20, 2014 at 2:58 pm #1944wattersk
ParticipantI think I’ve found where to put it, but I’m not seeing the exact code you describe? This is what I see:
function church_setup() {add_theme_support( ‘omega-footer-widgets’, 4 );
remove_action( ‘omega_before_header’, ‘omega_get_primary_menu’ );
add_action( ‘omega_after_header’, ‘omega_get_primary_menu’ );add_action (‘omega_header’, ‘church_header_right’);
/* Add support for a custom header image. */
add_theme_support(
‘custom-header’,
array( ‘header-text’ => false,
‘flex-width’ => true,
‘uploads’ => true,
‘default-image’ => get_stylesheet_directory_uri() . ‘/images/header.jpg’ ,
‘admin-head-callback’ => ‘church_admin_header_style’,
‘admin-preview-callback’ => ‘church_admin_header_image’
));March 20, 2014 at 3:12 pm #1945wattersk
ParticipantI FOUND IT!!!
April 13, 2014 at 2:45 am #2048christinebucklerphotography
ParticipantIs there code to do this in the Omega theme?
April 14, 2014 at 4:32 am #2070han
KeymasterCustomize Omega Parent is not recommended. I’d suggest to customize via Omega child theme. And then you can simply hide it via custom css (Appearance > Customize).
.nav-primary { display:none; }April 16, 2014 at 1:25 am #2128christinebucklerphotography
Participantthank you!
-
AuthorPosts
You must login to reply to this topic.
