Created
April 11, 2016 22:34
-
-
Save stuartduff/a2c61865d3233a3da8ec24c813999f80 to your computer and use it in GitHub Desktop.
Remove the cart from the header of the WooThemes Storefront theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove_sf_actions() { | |
remove_action( 'storefront_header', 'storefront_header_cart', 60 ); | |
} | |
add_action( 'init', 'remove_sf_actions' ); |
For StoreFront Child Theme works perfect.
It even works for the parent theme.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the Outlet child theme and this code doesn't work for that. In fact, I've yet to find one that does.