Archived topic
A couple of feature suggestions/improvements and one bug?
3 replies · Started by Paul on July 21, 2018
Customizing > Layout > WooCommerce
---
'Display short description'
- Is it possible to have an option to limit the amount of text displayed, and an option to add/remove HTML from description (ie, just plain text).
Customizing > Layout > Primary Navigation
---
- Possible to add a 'Sub-Menu Item Width' and sub-menu items with long titles don't display very well.
- Alternatively, have a sub-menu which is auto-resizing to length of items.
Other Issues
---
Shortcodes do not seem to be working when using the 'Sections' feature. Namely I'm trying to use [featured_products] from WooCommerce to display featured products on my homepage in their own section.
Hi there,
1. Great idea! Made a note of this.
2. This is planned in GP 2.2.
3. Can you try this shortcode instead?: https://docs.woocommerce.com/document/woocommerce-shortcodes/#scenario-2-featured-products
Thank you!
That's great. Thanks Tom.
Do you have a rough timescale for when the following will be implemented?
Customizing > Layout > WooCommerce
—
‘Display short description’
– Is it possible to have an option to limit the amount of text displayed, and an option to add/remove HTML from description (ie, just plain text).
Cheers,
Paul
It probably won't make it in until GPP 1.8.
For now, you could try something like this:
add_filter( 'woocommerce_short_description', function( $excerpt ) {
if ( function_exists( 'is_product' ) && is_product() ) {
return substr( $excerpt, 0, 10 ); // 10 being the limit
}
return $excerpt;
} );