Home New Guten Forums WoodMart support forum Icon on add to cart button

Icon on add to cart button

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #663156

    raz.sofer
    Participant

    Hi
    I would to add an icon to add to cart button but see no option in elementor.
    How can i do so?

    #663221

    Hung Pham
    Keymaster

    Hi raz.sofer,

    Thanks for reaching to us.

    Provide me with the mockup of the styles that you try to achieve and we’ll send proper instructions if it’s possible.

    Kind Regards,
    Hung PD

    #663245

    raz.sofer
    Participant

    Thanks Hung. I want to add a cart / bag icon near the text permanently or on hover. Similar to header icon.
    I have seen this in other elementor sites but I guess they use a different theme.

    #663355

    Hung Pham
    Keymaster

    Hi raz.sofer,

    To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.

    Kind Regards,
    Hung PD

    #663439

    raz.sofer
    Participant

    attached

    #663498

    Hung Pham
    Keymaster

    Hi raz.sofer,

    .wd-product.wd-hover-fw-button .wd-add-btn a.add-to-cart-loop span {
        padding: 12px 0 12px 12px;
    }
    
    .wd-add-btn-replace a.add-to-cart-loop:before {
        position: static;
        transform: none;
        content: "\f105";
    }
    
    .wd-add-btn-replace a.add-to-cart-loop:hover span {
        transform: none;
    }

    Kind Regards,
    Hung PD

    #663557

    raz.sofer
    Participant

    Thank you Hung!
    The code you sent is for the product archive. I need the icon to show up on “.single_add_to_cart_button” class.
    Should I just replace the classes you sent?

    #663658

    Hung Pham
    Keymaster

    Hi raz.sofer,

    Please use below code:

    button.single_add_to_cart_button:before{
        transform: translateY(0);
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 400;
        font-size: 20px;
        transition: opacity .15sease, transform .25sease;
        content: "\f123";
        font-family: "woodmart-font";
        position: relative;
    }
    
    button.single_add_to_cart_button.loading:before{
        opacity: 0;
    }

    Kind Regards,
    Hung PD

    #664255

    raz.sofer
    Participant

    Thank you Hung!

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Icon on add to cart button’ is closed to new replies.