Wooassist

Assistance for Your Woocommerce Store

  • How it Works
  • Pricing
  • Services
    • Site Maintenance
    • AI SEO and Content Marketing
  • Blog
    • How-To Articles
    • Code Snippets
    • SEO For E-Commerce
    • Theme and Plugin Reviews
    • Wooassist News
    • WordPress/WooCommerce News
    • Interviews
  • About Us
  • Contact
You are here: Home / Code Snippets / How to Move the Navigation Menu Outside of Header for Storefront

How to Move the Navigation Menu Outside of Header for Storefront

February 26, 2015 By John 9 Comments

Here’s another tweak that you can do on the Storefront theme.

Move the Navigation Menu Outside of Header

If you want to move the main navigation/menu below or outside the header, you just need a few lines of code. There is no need to create a new header.php file on your child theme. Instead, just add this piece of code to your child theme’s functions.php file and you’re all set.

function child_theme_init() 
{
remove_action( 'storefront_header', 'storefront_primary_navigation', 50 );
add_action( 'storefront_before_content', 'storefront_primary_navigation', 5 );
}
add_action( 'init', 'child_theme_init' );

Before you do this, do know that it’s not really recommended to move the styles outside of its original location. After doing this, you will need to redo all the menu styles and that’s a lot of work.

Now you know how to move the navigation menu outside of header for storefront theme. Hope this worked for you. If not, feel free to post a comment and we’ll see what we can do to help you out.

People that read this article also liked

How to Rename Primary Menu in Mobile View for Storefront Theme How to Change the Arrows in Pagination for Storefront and WooCommerce How to Remove Horizontal Line under Page Title in Storefront Theme How to Make WooCommerce Pages Full Width in Storefront Theme

Filed Under: Code Snippets, How-To Articles Tagged With: code snippet, design tweaks, how-to, navigation, Storefront, woothemes

Comments

  1. Clay says

    May 5, 2017 at 7:07 am

    I could fuggin kiss you! Thanks man

    Reply
  2. Junita says

    January 31, 2018 at 10:36 am

    Hi,
    What does 50 and 5 mean?

    Reply
  3. Shib Nandy says

    May 25, 2018 at 11:05 am

    Hello,
    Very good & helpful blog.

    Reply
  4. Anderson Torres says

    June 16, 2018 at 6:56 am

    Thank you very much !!!!. Hugs from Brazil !!

    Reply
  5. Mau Castro says

    July 15, 2020 at 2:19 am

    I now have two primary-navigation!

    BR

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


Let us support your online store so you can manage your business

Get started today

Get 2 Hours of FREE SUPPORT

We are so confident that you will love our services that we will give you your first 4 hours at a 50% discount

That’s 4 hours for only $75

BUY NOW

Free eBook

5 Things Every Online Store Can Fix On Their Website In The Next Week To Increase Sales

Quick Links

  • How it Works
  • Pricing
  • Blog
  • Contact
  • About Wooassist
  • My Account
  • Checkout
  • Privacy Policy
  • Cookie Policy
  • Terms and Conditions

Wooassist

Australia:
59 Luke St.
Hemmant QLD 4174

Philippines:
San Miguel St.
Poblacion, Iligan City 9200

Connect

     

Copyright © 2026 · Wooassist

Yours FREE!

5 Things Every Online Store Can Fix On Their Website In The Next Week To Increase Sales