We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Remove the cart logo and leave only the circle with the number of items inside

Solved

Remove the cart logo and leave only the circle with the number of items inside

martujv
Trailblazer
234 2 46

Hello!

 

I want to remove the "cart" icon and leave only the circle with the number of items inside the cart.

My theme is Stiletto and my store is www.winnerofficial.com

 

I attach reference images:

 

How it is now:

Captura de pantalla 2024-04-04 a las 21.08.54.png

 

How I want it to be:

BFBBF302-BD53-4288-B1D5-74ED9645E893.JPEG

Accepted Solutions (2)

Hardik29418
Shopify Partner
2913 418 1083

This is an accepted solution.

Please go to
1) Online store
2) Themes -> Edit theme
3) Layout
4) theme.liquid and paste this code before </head>

<style>
[data-js-cart-icon=bag] [data-js-cart-count] {
left: 8px;
    bottom: 9px;
}
.icon-button-header-shopping-bag .icon-button__icon .icon-header-shopping-bag {
display: none !important;
}

@media only screen and (max-width: 479px) {
[data-js-cart-icon=bag] [data-js-cart-count] {
    left: 9px;
    bottom: 12px;
}
 }
</style>



- Need a Shopify developer? Chat on WhatsApp or EMAIL ME!


- Your Coffee Tip would do Magic code ❤️
- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Email

View solution in original post

PageFly-Henry
Shopify Partner
1184 335 300

This is an accepted solution.

Hi @martujv 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.css

Step 3: Paste the below code at bottom of the file -> Save


span.icon.icon-new.icon-header-shopping-bag {

    display: none !important;

}

[data-js-cart-count] {position: inherit !important;left: -40px !important;}

 

Hope that my solution works for you.

Best regards,

Henry | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

View solution in original post

Replies 6 (6)

Hardik29418
Shopify Partner
2913 418 1083

This is an accepted solution.

Please go to
1) Online store
2) Themes -> Edit theme
3) Layout
4) theme.liquid and paste this code before </head>

<style>
[data-js-cart-icon=bag] [data-js-cart-count] {
left: 8px;
    bottom: 9px;
}
.icon-button-header-shopping-bag .icon-button__icon .icon-header-shopping-bag {
display: none !important;
}

@media only screen and (max-width: 479px) {
[data-js-cart-icon=bag] [data-js-cart-count] {
    left: 9px;
    bottom: 12px;
}
 }
</style>



- Need a Shopify developer? Chat on WhatsApp or EMAIL ME!


- Your Coffee Tip would do Magic code ❤️
- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Email
martujv
Trailblazer
234 2 46

It worked! But how could I make it a little bit bigger?

Hardik29418
Shopify Partner
2913 418 1083

@martujv  PLease place the above code so  that I can provide you the solution according to the best design

- Need a Shopify developer? Chat on WhatsApp or EMAIL ME!


- Your Coffee Tip would do Magic code ❤️
- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Email

PageFly-Henry
Shopify Partner
1184 335 300

This is an accepted solution.

Hi @martujv 

This is Henry from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.css

Step 3: Paste the below code at bottom of the file -> Save


span.icon.icon-new.icon-header-shopping-bag {

    display: none !important;

}

[data-js-cart-count] {position: inherit !important;left: -40px !important;}

 

Hope that my solution works for you.

Best regards,

Henry | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

martujv
Trailblazer
234 2 46

It worked! But can I make it a little bit bigger?

PageFly-Henry
Shopify Partner
1184 335 300

You can try with this code to make it bigger.

[data-js-cart-count] {min-width: 20px !important;height: 20px !important;}

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.