New Landing How can we help? Themeforest Theme Support Flexform Portfolio excerpt length

Viewing 7 posts - 1 through 7 (of 7 total)
  • Posted in: Flexform
  • #8136
    ecogirl
    Member
    Post count: 13

    Hi,

    some of the excerpts beneath my portfolio images are being cut off:

    http://ecorglobal.com/dev/products/raw-panels/

    I would like to adjust them so that I can include the full excerpt beneath the image. Within the portfolio widget, I have changed the Excerpt Length to 150, but it still cuts off the last sentence of text for a couple of the posts.

    How do I fix this?

    #8259
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Hi,

    You would need to increase the excerpt length for the Portfolio element on your page, in order to show more text.

    Regards,
    ————————————————————————————————————

    Cosmin – Support

    #8816
    ecogirl
    Member
    Post count: 13

    I already increased the excerpt length to 250, and it doesn’t make any difference – it still cuts off the last sentence. Please advise.

    #9222
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Ed, is there any possibility that the Excerpt length isn’t correctly being saved/used when using a child theme?

    Regards,
    ————————————————————————————————————

    Cosmin – Support

    #9316
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    functions.php line 1201, try increasing that.

    function new_excerpt_length($length) {
    return 60;
    }
    

    – Ed

    #11106
    cconser
    Member
    Post count: 9

    If I change this line, will I need to change it each time Flexform is updated?

    #11542
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Instead, what you could do is create a child theme functions.php file, and add this code within it:

    function remove_flex_function() {
        remove_action('excerpt_length','new_excerpt_length',1);
    }
    add_action('init','remove_flex_function');
    
    
    function child_new_excerpt_length($length) {
        return 120;
    }
    add_action('excerpt_length','child_new_excerpt_length', 1);
    

    Let me know if that works.

    – Ed

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register