HostOnNet Blog

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

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{
	width:100%;


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