I would like to edit the text in the header mini cart in Storefront theme: 'X items' to just : 'X' http://demo.woothemes.com/storefront/
Where can I access this? Can't find it anywhere in storefront or woocommerce files. I can see hook in header.php: storefront_header_cart but can't find any function for this in other files?
I would like to remove the dropdown when you hover over it too. Where can I change this?
that functionality is handled by
storefront_cart_link
function...you can override the function... open functions.php... look for
require get_template_directory() . '/inc/init.php';
right above it, paste this code...
storefront_cart_link
is loaded with this callrequire get_template_directory() . '/inc/init.php';
. So above will load first, making it not create that function anymore with the call ofrequire get_template_directory() . '/inc/init.php';
.This will do the trick.. but better use child theme... you can just paste directly the function above on the child theme's functions.php. functions.php on a child theme will load first than that of the parent, so making your function exist first.