Add static content to the Storefront header

Adding static content to the Storefront header requires hooking a function that outputs your content into storefront_header.

Note: This is a Developer level doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our  Support Policy.

You can control the position of the markup via the priority set. For example, the following snippet would add a ‘row’ between the site title / secondary navigation / search and the primary navigation.

Tweak the priority and the inline CSS to meet your requirements.

We recommend adding snippets like this to your Theme Customization plugin to ensure that your custom code isn’t lost when you update Storefront or any Storefront Child Theme.

WooCommerce - the most customizable eCommerce platform for building your online business.

Back to the top