THEMEHALL
  • Omega
  • Cart
  • Support
  • My Account

Change position of the navigation bar

Home › Forums › Omega › Change position of the navigation bar

Tagged: nav bar omega header position

  • This topic has 16 replies, 6 voices, and was last updated 11 years, 8 months ago by han.
Viewing 15 posts - 1 through 15 (of 17 total)
1 2 →
  • Author
    Posts
  • October 21, 2013 at 8:14 am #615
    pooleroid
    Participant

    Hello,
    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!
    Paolo

    October 21, 2013 at 10:55 am #623
    han
    Keymaster

    It’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 #624
    pooleroid
    Participant

    Thank you one thousand times han, and congratulation again on your work.

    October 21, 2013 at 11:11 am #627
    han
    Keymaster

    You’re most welcome. Just moved this topic under Omega forum.

    November 4, 2013 at 2:30 am #753
    tomw
    Participant

    I 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 #754
    han
    Keymaster

    What child theme you use?

    November 4, 2013 at 2:32 am #755
    tomw
    Participant

    Church theme

    November 5, 2013 at 2:54 am #779
    tomw
    Participant

    When 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 #792
    han
    Keymaster

    For church theme,find add_action( 'omega_after_header', 'church_banner' ); and replace with add_action( 'omega_after_header', 'church_banner',5 );

    March 20, 2014 at 2:53 pm #1943
    wattersk
    Participant

    HELP! Where, exactly, do we put this code of Church child theme? Thanks much in advance.

    March 20, 2014 at 2:58 pm #1944
    wattersk
    Participant

    I 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 #1945
    wattersk
    Participant

    I FOUND IT!!!

    April 13, 2014 at 2:45 am #2048
    christinebucklerphotography
    Participant

    Is there code to do this in the Omega theme?

    April 14, 2014 at 4:32 am #2070
    han
    Keymaster

    Customize 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 #2128
    christinebucklerphotography
    Participant

    thank you!

  • Author
    Posts
Viewing 15 posts - 1 through 15 (of 17 total)
1 2 →

You must login to reply to this topic.

Copyright © 2025 THEMEHALL.

  • Terms of Service
  • Resources
  • Blog
  • Support
css.php