HostOnNet Blog

How to remove the shopping cart icon from the header of Storefront theme

Looking for Linux Server Admin or WordPress Expert? We can help.

Add the following code in functions.php

function remove_sf_actions() {
	remove_action( 'storefront_header', 'storefront_header_cart', 60 );
add_action( 'init', 'remove_sf_actions' );

And then update the style.css file in theme folder with following or copy this into Customize > Additional CSS

 .woocommerce-active .site-header .main-navigation{

About Sibi Antony

Bootstrap and Android LOVER. I've been creating things for the web for over 10 years, from the period of flash and table based layout web sites till mobile and tab friendly web sites.
Posted in Wordpress

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.