How to Remove Header WooCommerce Storefront Theme

WooCommerce Storefront Remove HeaderEditing a theme’s header can be a difficult task for the average WordPress user. However, the Storefront theme is very easy to customize. It only takes you a handful of clicks to edit the format of the header, hide header elements, or change background, text, and link colors. In this brief guide, I will share with you how you can hide or remove the header elements from your online store.

WooCommerce Storefront Remove Header

Header

Why Storefront?

The Storefront theme is the best theme that you can use with WooCommerce. This is because the same company responsible for developing WooCommerce develops the theme as well.  This means that they integrate seamlessly with each other and compatibility will never be an issue. From an expert point of view, I highly recommend that you should consider using it to prevent any issues in the long run.

Moreover, I have come across many WooCommerce stores that had a lot of problems due to conflicts with the theme. Each time, I have recommended the use of the Storefront theme, and every time, using Storefront fixed the problem.

Steps to remove the Header of the Storefront Theme

In this section, I will share with you any easy way to remove the header in the Storefront Theme. First, we need to identify the header and all its elements using the console. After that, I will add a new rule in the console to see if it works. When I get the desired results, I will make the changes permanent by adding the new rule in the Additional CSS section.

Here are the steps that you need to follow:

  1. Identify the Element you need to Change

Simply right-click on the area you want to change in a browser like Chrome or Firefox and click “Inspect Element” like this:Inspect element

After clicking on that, this will bring up the console containing the various elements of the page on the left and the settings for those elements on the right. Now you need to find the element responsible for the Header.identify the element

  1. Add CSS Styling in the Console

Add CSS StylingIn my example, I have removed the header by adding a new rule ‘display: none;’. However, it is important to note that this does not make any actual changes to your site. It acts as just a temporary change that is visible in your browser. It allows you to experiment to your heart’s content. Moreover, you can even decide to place an image as the background. Now that you are satisfied with your changes, it is time to make it permanent.

  1. Extracting the New Rule

You need to extract the rule by right-clicking it (on Firefox) like this and selecting “Copy Rule”:Copy rule

However, if you are using Chrome, you can just select the entire rule with your mouse and copy the text. Paste it into an editor and delete all the existing rules except for the new one you just added if there are any.

  1. Adding the Rule

The remaining part is to copy/paste into the “Additional CSS” section of your Storefront theme customization interface. To do this:

  • Log into your WordPress site and access the Dashboard as the admin user.
  • From the Dashboard menu, click on Appearance Menu > Customize.
  • Navigate down to Additional CSS in the left sidebar that appears.Additional CSS
  • Add the CSS rule as shown below:
.site-header {

      display: none;

}
  • This will be the outcome:No header
  • Click on publish once you are satisfied with the changes.

Conclusion

In this post, I have shared a simple way to remove the header elements in your Storefront theme. The trick is to identify the right element using the console as I have shown you in the tutorial.

Moreover, I have shown you how you can add a new rule in the console and extracting it. after that, I have shown you how you can add the new rule using the Additional CSS section.

Additionally, as I had earlier mentioned, Storefront is the best theme to use with WooCommerce and the theme was made and is being updated by the same people who created WooCommerce so compatibility will never be an issue.

Similar Articles

 

Comments are closed.