Omega Header

Home Forums General Forums Omega Header

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1076
    famiauni
    Participant

    Hi,

    Can anyone help me move the header above the navigation bar? CSS maybe?

    Gedeon

    #1099
    han
    Keymaster

    Add 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.

    #1204
    famiauni
    Participant

    No, I am using the Church theme

    #1226
    famiauni
    Participant

    Do I need to use the same code..seeing the church theme a chlid theme of the omega theme?

    #1231
    han
    Keymaster

    For 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 );

    #1239
    famiauni
    Participant

    Many 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.

    #1777
    pixeltoko
    Participant

    Hi

    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 ๐Ÿ™‚

    #1779
    voyciu
    Participant

    @pixeltoko

    You 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

    #1780
    pixeltoko
    Participant

    @voyciu thanks but it doesn’t work.

    #1782
    han
    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.

    #1783
    pixeltoko
    Participant

    @Han Ok Thanks, but I am afraid this goes a little beyond my knowledge but thanks for your support. Love the theme.

    #1784
    han
    Keymaster

    simply 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 ๐Ÿ™‚

Viewing 12 posts - 1 through 12 (of 12 total)

You must login to reply to this topic.