• Resolved Moses001

    (@moses001)


    I am using Storefront Theme 1.4.6 and woocommerce 2.4.6. I cannot seem to remove the woocommerce shopping cart in the navigation menu.

    I tried the following code, but it does not work.
    ‘add_action( ‘init’, ‘jk_remove_storefront_cart’ );
    function jk_remove_storefront_cart() {
    remove_action( ‘storefront_header’, ‘storefront_header_cart’, 60 );
    }’

    I get the following error message when using the above code in a Storefront Child theme. Warning: Cannot modify header information – headers already sent by (output started at /var/www/volumes/xvdf3/vhosts/pumpsselection.com/httpdocs/test/wp-content/themes/storefront-child/functions.php:33) in /var/www/volumes/xvdf3/vhosts/pumpsselection.com/httpdocs/test/wp-includes/pluggable.php on line 1207

    I tried changing the priority from 60 to 70 and 60 to 40 and 50. I still get the error.

    I am not sure what to do.

    Any help would be much appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter Moses001

    (@moses001)

    I tried the code above again after deactivating some plugins. The code above works and does remove the shopping cart icn and $ amount

Viewing 1 replies (of 1 total)
  • The topic ‘Storefront Child Theme and Woocommerce Shopping Cart’ is closed to new replies.