• Resolved mh1web

    (@mh1web)


    Hi everyone!

    I asked for the same subject a year ago, but I got nothing to work with.

    Now I’m creating another website and I’m confronted with the same problem:

    Please click this link, so you got a good context on what exactly I mean

    So I’d like to change the cart icon. I use WordPress (obviously ?? ), Woocommerce, Elementor). The theme I created the website off of is one of the plugin “Starter Template (formerly known as “Astra).

    1. The “Starter Template” is not accessible in the WordPress Dashboard, neither am I able to contact the developers.
    2. I added the cart to the header via the Customizer (which is a great tool). There I could customize a lot about the cart area, but not the cart icon itself. Neither could I change it via Customizer -> WooCommerce.
    3. I tried lots of CSS code to change the icon, nothing worked unfortunately.
    This is what I’ve tried:

    .site-header-cart .cart-toggler .cart-contents {
    	content: '';
    	background: url('URL_TO_YOUR_CART_IMAGE') no-repeat center center;
    	background-size: contain;
    	width: 20px;
    	height: 20px;
    	margin: -2px -4px;
    	display: inline-block;
    }

    (I used a good URL ofc)
    Didnt work. also tried another snippet:

    .site-header-cart .cart-toggler .cart-contents {
    	content: '';
    	background: url('https://veniccelove.com/wp-content/uploads/2021/10/shopping_cart-removebg-preview.png') no-repeat center center;
    	background-size: contain;
    	width: 20px;
    	height: 20px;
    	margin: -2px -4px;
    	display: inline-block;
    }
    
    .et-cart-info span:before {
        /* icon made by stephen-hutchings from www.flaticon.com */
        background: url('https://image.flaticon.com/icons/svg/2/2772.svg') !important;
        content: '';
        display: inline-block; 
        height: 1em !important;
        width: 1em !important;
        vertical-align: -1px;
    }

    Try #3 was this, but also not successful:

    .shopping-bag-button:before {
        content: '';
        background: url(<https://veniccelove.com/wp-content/uploads/2021/10/shopping_cart-removebg-preview.png>);
    
        width: 30px;
        height: 30px;
        display: block;
        background-size: 100%;
        background-repeat: no-repeat;
    }

    Can somebody help me, please? I have no idea why this is so extremely difficult. To change a mere cart icon shouldn’t take more than 3 seconds, but as it is this takes more like 3 weeks to figure this miniscule detail out… what the hell?!?

    Thanks in advance!

    • This topic was modified 3 years, 5 months ago by mh1web.
    • This topic was modified 3 years, 5 months ago by mh1web.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @mh1web,

    While we do not mostly extend our scope of support to custom code I’m going to leave this thread open for a bit to see if anyone is able to chime in to help you out.

    If you don’t find a solution please consider reaching out to some of the official WooCommerce development partners via this link: https://woocommerce.com/customizations/.

    Thanks.

    Thread Starter mh1web

    (@mh1web)

    Hi Mirko,
    Thanks for the reply.
    OK I will try to contact the development partners.
    Not sure why this has to be so difficult, it’s not like I want to hack into the pentagon, I just want to change a friggin’ cart icon *shrug*
    This stuff shouldn’t be extremely difficult….

    Mirko P.

    (@rainfallnixfig)

    Hey @mh1web,

    That’s not really an image but it’s composed using CSS code as you mention. This is what I’ve found inspecting the page and targeting the specific class:


    Link to image: https://i.imgur.com/xPO01pJ.png

    Customizations are outside the scope of support we can provide on these forums. This thread has been open for a while but it seems that no developers were able to chime in to help you out. Therefore, other options would be reaching out to your theme authors for help and if they’re not able to assist please consider hiring a developer or customization expert and get a quote for that specific customization. I’m sure those professionals will be able to help in order to get this sorted.

    I’m going to close this thread now. Feel free to open a new topic if you have more questions.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change shopping cart icon’ is closed to new replies.