• Resolved doczimute

    (@doczimute)


    Hello

    I use Woocommerce with the Astra theme in catalog mode (without shopping cart) with a plugin. However, for products (on the store page) there remains a cart with the label “read more” for products without prices and out of stock, that I wish to remove.

    In the file /wp-content/themes/astra/inc/compatibility/woocommerce/class-astra-woocommerce.php for “public function modern_add_to_cart()” on line 227, once lines 253 to 263 ($markup) are removed, these items are no longer displayed.

    What instructions could we put in the function.php file of the child theme to obtain this result, in order to preserve this modification when updating the parent theme?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @doczimute,

    Could you please provide the exact steps to replicate the scenario? I would like to try it on my dev site. Please mention the plugin you are using as well as the link to the plugin.

    In the meantime, please try switching the theme to a default WooCommerce theme, Storefront. Do you have the same thing with this theme?

    I look forward to hearing from you.

    Kind regards,
    Herman ??

    Thread Starter doczimute

    (@doczimute)

    Hello

    The plugin used for the catalog is “NS WooCommerce Catalog” and for my concerns, they are related only to the Astra theme.

    Hi @doczimute, sorry for the delay.

    What if you hide the Read more button using CSS? Something like the following works on my localhost site

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

    Kind regards,
    Herman ??

    Thread Starter doczimute

    (@doczimute)

    Hello

    The idea is there, but regarding the cart proposed by the CSS of the Astra theme:

    .ast-card-action-tooltip {
    display: none !important;
    }
    .ahfb-svg-iconset {
    display: none !important;
    }

    Thread Starter doczimute

    (@doczimute)

    Simpler :

    .ast-on-card-button {
    display: none !important;
    }

    Then clear the caches.

    Thread Starter doczimute

    (@doczimute)

    Resolved !

    Hi,

    Very pleased to know you have figured out custom CSS that works well for you.

    Feel free to start a new thread if there’s anything else related to Astra, we can help you with.

    Kind regards,
    Herman ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cart with the label “read more”’ is closed to new replies.