I’m using WooCommerce for my shopping pages, and I want to display product descriptions in a toggle/accordion style on some pages, similar to this example: https://app.supademo.com/image/cmgvmj51f03dhz30ic7lh55de.
This style provides a compact, neat, and user-friendly look, but I noticed that TagDiv Composer does not have a built-in toggle description element.
Could you please advise if there’s a way to implement this for WooCommerce product descriptions, either through custom CSS, shortcode, or a compatible method within the theme?
Hi,
Unfortunately, the theme do not have that option for the Description of products it have some similar options, like read more on Woo Product Description https://i.imgur.com/82MRt9T.png, and also it has the tab it as a tabs version – https://i.imgur.com/QNEBXkc.png – https://i.imgur.com/hac5zLF.png
Hi,
If all products will have the label with teh same procent then you cna use a hook.
use a child theme and set in functions.php file from child this function:
add_filter('woocommerce_sale_flash', 'woocommerce_custom_sale_text', 10, 3); function woocommerce_custom_sale_text($text, $post, $_product) { return '[NEW TEXT]'; }
The results – https://i.imgur.com/BOt46dS.png – https://i.imgur.com/TgFDO3R.png