Home Forums WoodMart support forum Remove the “Add to Cart” button from the store

Remove the “Add to Cart” button from the store

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #624965

    Ecommerce
    Participant

    Hello,
    How can I remove the add-to-cart button from the general grid view on the homepage and store pages? Does the theme have an option for this feature?

    The code you previously shared on the forum gives an error when added to the functions file.

    Code:
    .woodmart-add-btn {
    display: none;
    }

    Error message:
    syntax error, unexpected ‘.’, expecting end of file

    #625069

    Hung Pham
    Keymaster

    Hi Ecommerce,

    Thanks for reaching to us.

    Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS:

    .wd-product.wd-hover-buttons-on-hover div.product-wrapper {
        overflow: visible;
    }
    
    .wd-product.wd-hover-buttons-on-hover .wd-add-btn {
        display: none;
    }

    Regards,

    #625077

    Ecommerce
    Participant

    I get this error when I try to add the code and save it.

    **”Your PHP code changes were not applied due to line 101 in the file wp-content/themes/woodmart-child/functions.php. Please fix it and try saving again.

    Syntax error: unexpected ‘.’, expecting end of file.”**

    #625080

    Ecommerce
    Participant

    Okay, it’s done. Thanks, I was mistakenly trying to add it to the function.

    #625409

    Hung Pham
    Keymaster

    Hi Ecommerce,

    Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!

    Regards,

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

The topic ‘Remove the “Add to Cart” button from the store’ is closed to new replies.