Home Forums WoodMart support forum Replace “Add to Cart” Button with “Learn More” and change icon on hover

Replace “Add to Cart” Button with “Learn More” and change icon on hover

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #693790

    IrinaG
    Participant

    Hi!
    I’m switching https://new.powerlab.com.pl online store to catalog mode, but unfortunately, the option provided in the theme doesn’t work for me, because I still need the buttons in the product archive. I’d like to replace the “Dodaj do koszyka” (Add to cart) link in the product archive with “Dowiedz się więcej” (Learn more), but I don’t want to remove the prices from the products. I’d also like the cart icon to change to an eye icon on hover.
    Please send me the code for these changes. I’d really appreciate it.

    #693864

    Hello,

    To change add to cart button text, You need to use the Loco Translate plugin, more details on how to use it are here – https://xtemos.com/docs-topic/translate-woodmart-theme-with-loco-translate/

    To change the icon, Try to add the following custom CSS Code in Theme Settings > Custom CSS:

    .wd-add-btn-replace .add-to-cart-loop:before {
            content: "\f118" !important; 
        }

    Then, navigate to Theme Settings > Typography > Icons font and change the icon code.

    Best Regards,

    #693878

    IrinaG
    Participant

    Hello Aizaz,
    Thank you for your reply. Unfortunately, the Loco Translate method doesn’t solve my issue, because I don’t only need to change the button text — I also need to change its behavior. Currently, the “Add to cart” button in the product archive adds the item directly to the cart. Instead, I want this button to link to the single product page.
    Could you please advise the best way to achieve this.

    Best regards, Irina

    #693890

    Hello,

    Unfortunately, there is no such option by default in WoodMart and WooCommerce. You need to find a third-party plugin to achieve more functionality that best suits you.
    https://wordpress.org/plugins/woocommerce-add-to-cart-custom-redirect/

    Best Regards,

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