WordPress.org

Forums

Remove a WooCommerce Button (3 posts)

  1. CalvT
    Member
    Posted 1 year ago #

    On my wordpress theme, by selection 'inspect element' on chrome, I have following html

    Add to cart

    I want to change the visibility:visible to visibility:invisible

    Where do I change this? I've checked functions.php and styles.css but no luck.

  2. CalvT
    Member
    Posted 1 year ago #

    <a href="/?add-to-cart=1284" rel="nofollow" data-product_id="1284" data-product_sku="BDA01" class="button add_to_cart_button product_type_simple" style="visibility: visible; opacity: 1; top: 81.5px;">Add to cart</a>

    The code.....

  3. inakigil
    Member
    Posted 1 year ago #

    Hi CalvT,

    You can hide in style.css with item class.

    a.button add_to_cart_button product_type_simple {
    display:none !important;
    }

    Regards.

Topic Closed

This topic has been closed to new replies.

About this Topic