-
AuthorPosts
-
November 16, 2015 at 11:17 pm #667854
Hey! I searched but couldn’t find an answer to this – how do I change the regular cart icon in the navbar? I’d love to change it to a png of a sleigh (you know, being festive and all for the holidays). I have the sleigh uploaded to my site, just not sure how to switch out the <i> code for a
code or if there’s a way to make the <i> code actually show a png. Is this possible??
I can provide any details you need if you need it!
Thanks
MattNovember 17, 2015 at 12:30 am #667931Hi there,
Please provide us with URL of your site and screen shot to show us how the button should look like .
Thanks.
November 17, 2015 at 10:22 am #668600This reply has been marked as private.November 17, 2015 at 11:10 am #668683Hi Matt,
Thank you for providing the screenshots!
To achieve that, add following CSS under Custom > CSS in the Customizer:
.x-cart .x-icon-shopping-cart:before { content: ''; background: url('URL_TO_YOUR_CART_IMAGE') no-repeat center center; background-size: contain; width: 21px; height: 15px; margin: -2px -4px; display: inline-block; }
Replace URL_TO_YOUR_CART_IMAGE with the URL to your cart icon.
Hope this helps. 🙂
Thank you!
November 18, 2015 at 6:17 pm #670770I love you guys. That worked perfectly!
November 18, 2015 at 8:14 pm #670859You’re most welcome! Let us know if we can be of any further assistance.
April 20, 2016 at 1:12 pm #892259How can you change it so it shows a different icon from the x icon library (like the gift icon)?
April 21, 2016 at 1:15 am #893092Hi there,
You can use the below CSS for that.
.x-icon-shopping-cart::before { content: "\f06b"; }
Hope that helps.
-
AuthorPosts