Support » Theme: Storefront » How to remove the shopping cart icon below the header?

  • Resolved nationalcorp

    (@nationalcorp)


    Hi,
    Would you help me remove the small shopping cart icon below the header, along with the total $ amount and the number of items indicated on the left side of the shopping cart icon?

    I am trying to make a simple and minimalistic look for my website, and the “$xxx #items (cart icon)” below the header makes it look more cluttered than I would like.

    It looks somewhat like the attached link image below, but not exactly. The green button in the image has the same function as the icon I am referring to here, however.

    Image link

    Thank you in advance for your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • wooassist

    (@wooassist)

    hey @nationalcorp, I assume you mean the cart widget in the header. If so, to remove that, you’ll just have to use the code below in your child theme’s functions.php:

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

    Hope this helps!

    Thread Starter nationalcorp

    (@nationalcorp)

    Thank you!!!

    kurz00

    (@kurz00)

    Hello wooassist, i follow your instruction but nothing changed for me, i added the code in the child theme of Storefront in functions.php

    James Koster

    (@jameskoster)

    Did you activate the child theme? The above code definitely works.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to remove the shopping cart icon below the header?’ is closed to new replies.