Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #667854

    Matt Mintun
    Participant

    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
    Matt

    #667931

    Christopher
    Moderator

    Hi there,

    Please provide us with URL of your site and screen shot to show us how the button should look like .

    Thanks.

    #668600

    Matt Mintun
    Participant
    This reply has been marked as private.
    #668683

    Zeshan
    Member

    Hi 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!

    #670770

    Matt Mintun
    Participant

    I love you guys. That worked perfectly!

    #670859

    Prasant Rai
    Moderator

    You’re most welcome! Let us know if we can be of any further assistance.

    #892259

    hipneck
    Participant

    How can you change it so it shows a different icon from the x icon library (like the gift icon)?

    #893092

    Darshana
    Moderator

    Hi there,

    You can use the below CSS for that.

    
    .x-icon-shopping-cart::before {
        content: "\f06b";
    }
    

    Hope that helps.