Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @xcaiop,

    Thanks for reaching out!

    Please can you clarify if you would like to:

    • Hide the “Read More” button
    • Change the text on the button for out of stock items, or
    • Hide out-of-stock items from being displayed on the Shop page?

    Once we have a better understanding of what you would like to achieve, we’ll be able to better guide you.

    Cheers!

    Thread Starter xcaiop

    (@xcaiop)

    hide the read more botton

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hey @xcaiop,

    Thanks for clarifying!

    There is no built-in option within WooCommerce that can remove this button, and it would require a plugin or custom code to achieve.

    While custom code is outside our scope of support here, the developer-level support doc below shares a code snippet that can help you achieve this:

    It works as expected on my end, here are the results after adding the code snippet on my test site:

    You need to add this code to your child theme’s?functions.php?file or via a plugin that allows custom functions to be added, such as the?Code snippets?plugin.

    Please don’t add custom code directly to your parent theme’s?functions.php?file as this will be wiped entirely when you update the theme.

    Hope this helps!

    Thread Starter xcaiop

    (@xcaiop)

    It didn’t work, even with the code “read more” still appears on the out-of-stock product

    Screenshot por Lightshot (prnt.sc)

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hey xcaiop

    Thank you for your reply

    After checking the “Read More” button’s HTML code I noticed that it is not part of the Core WooCommerce but created by the Crocoblocks plugin.
    This may be the reason why the previously provided code did not work.

    I recommend contacting Crocoblock plugin support for further assistance regarding hiding the Read More button.

    I hope this helps ??

    Thread Starter xcaiop

    (@xcaiop)

    Hello, I was informed that it is standard for woocommerce. and now? hahahha follow both prints

    Screenshot por Lightshot (prnt.sc)

    Screenshot por Lightshot (prnt.sc)

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @xcaiop

    You added the “Add to Cart” button using the JetWooBuilder addons, which is why the code snippet from our guide didn’t function as expected. The code we shared on our site is specifically designed to work with the default button and the shop page only. It doesn’t support buttons added through third-party plugins.

    Direct link: https://dsh.re/8bd54

    Since this is a third-party plugin which we don’t provide support for (please see our Support Policy, it would be best to reach out to the plugin’s developers for further assistance. I am sure they will have no problem supporting you there.

    Additionally, you can add this code snippet to your child theme’s functions.php, or use the Code snippet plugin to check if the “Read more” button gets hidden or not:

    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart');
    
        remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart');

    You may also try the custom CSS shared here: https://stackoverflow.com/a/63509969

    If you’re still having trouble and the plugin developer wasn’t able to assist, I suggest you change the “Read more” text to “Out of the Stock.” You can do this by following the guide below: https://www.businessbloomer.com/woocommerce-rename-read-more-out-of-stock-shop/

    I wish I could help more, but hopefully, this gets you going in the right direction to get the job done.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘read more button’ is closed to new replies.