1. PROMO Upgrade to Pro Membership @ $99 / Lifetime & access all our 16+ premium Divi extensions: Divi Block, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Icon Cart color change when costumers add items

Discussion in 'Free Divi Community Forum' started by Barna Rácz, Oct 7, 2020.

  1. Barna Rácz

    Barna Rácz New Member

    Hey guys!

    I'd like to ask a little help.

    Can somebody write me little css code or php how can i set this function?

    So i just want to my cart icon color change when costumers add items if 0 item black if 0+ items red.

    Thank you!
     
    1. PRO MEMBER PERKS Divi.Help Pro Layout Packs - Agency Divi layout pack featuring modern overlay archive blog layout with hover effects:View Demo
  2. Divi.Help

    Divi.Help Administrator
    Staff Member

    There doesn't seem to have any CSS Class to indicate that there's item in the cart. So, it's not possible to achieve what you want with CSS.

    I would suggest to look for other woocommerce cart plugin that shows the cart count number. That would be more intuitive.