Site logo

Archived topic

A couple of feature suggestions/improvements and one bug?

3 replies · Started by Paul on July 21, 2018

Viewing posts 1–4 of 4

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.

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;
} );
This archived topic is closed to new replies.