Home › Forums › General Forums › Omega Header
- This topic has 11 replies, 4 voices, and was last updated 12 years, 2 months ago by
han.
-
AuthorPosts
-
November 23, 2013 at 3:05 pm #1076
famiauni
ParticipantHi,
Can anyone help me move the header above the navigation bar? CSS maybe?
Gedeon
November 24, 2013 at 11:00 am #1099han
KeymasterAdd below code into omega_child_theme_setup function.
remove_action( 'omega_before_header', 'omega_get_primary_menu' ); add_action( 'omega_after_header', 'omega_get_primary_menu' );I assume you use omega child theme.
November 26, 2013 at 11:14 pm #1204famiauni
ParticipantNo, I am using the Church theme
November 29, 2013 at 2:21 am #1226famiauni
ParticipantDo I need to use the same code..seeing the church theme a chlid theme of the omega theme?
November 29, 2013 at 4:00 pm #1231han
KeymasterFor Church theme, modify functions.php by replacing this code
add_action( 'omega_after_header', 'omega_get_primary_menu' );
with
add_action( 'omega_after_header', 'omega_get_primary_menu', 12 );November 29, 2013 at 11:04 pm #1239famiauni
ParticipantMany thanks..it works. Two more question. How do I hide the site title at the top of the website, and is there a possibility for a space between the header and the main navigation bar? I think it’s to close.
February 17, 2014 at 5:27 pm #1777pixeltoko
ParticipantHi
I want to move the menu below the title and description. I use a Omega child theme. I tried to put this code into the functions.php file in child theme folder:
remove_action( 'omega_before_header', 'omega_get_primary_menu' ); add_action( 'omega_after_header', 'omega_get_primary_menu' );But then I got two menus: 1 above and 1 below.
What am I doing wrong? (and is this the correct way to do it?)
Thanks for your help ๐
February 18, 2014 at 6:52 am #1779voyciu
ParticipantYou could replace a section of the header.php file:
<?php
do_action( ‘omega_before_header’ );
do_action( ‘omega_header’ );
do_action( ‘omega_after_header’ );
?>with this one …
<?php
do_action( ‘omega_header’ );
do_action( ‘omega_after_header’ );
do_action( ‘omega_before_header’ );
?>Hope this works for you bro
February 18, 2014 at 1:46 pm #1780February 18, 2014 at 2:16 pm #1782han
Keymaster@pixeltoko, you should put your code inside ‘omega_child_theme_setup’ function
To remove a hook, the $function_to_remove and $priority arguments must match when the hook was added.February 18, 2014 at 3:24 pm #1783pixeltoko
Participant@Han Ok Thanks, but I am afraid this goes a little beyond my knowledge but thanks for your support. Love the theme.
February 19, 2014 at 1:26 am #1784han
Keymastersimply find ‘omega_child_theme_setup’ function in functions.php and add these two lines of code like this
function omega_child_theme_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' ); }Hope that helps ๐
-
AuthorPosts
You must login to reply to this topic.
