Skip to main content

Change Custom Cart Icon Colour On Home Page

Introduction

Follow this information to change the custom cart icon colour on the home page.

Step 1: Add CSS

Add the following CSS to the Theme Options section of Divi or your child theme's style.css file and remember to change the colour to that of your choice. Note that the CSS below will change the colour of the cart icon to black on the home page only. If you would like to target other pages then change the ".home" to another selector.

.home .cart-icon svg path {
fill: #000000; /* Change the color to what you want */
}

Step 2: View Home Page

View the change on your home.