Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #830320

    I noticed and issue with excerpt length and want to accomplish 2 things.
    1. Control the length of the excerpt when using the Recent News sidebar widget
    The sidebar widget one is a little self explanatory I guess, but I can’t figure out how to change it to be shorter, around 100 charaters or maybe less
    Here is the blog with sidebar widget http://www.itsgreektomemn.com/news/

    2. Control the excerpt length on the main blog page for posts using the AVIA editor instead of the default editor.

    Enabling excerpt with a fixed length only works for the default editor and is blank with AVIA. When using the AVIA editor you can however, enable Excerpt under the Screen Options drop down, but it doesn’t restrict the length of the expert to a set amount of characters. Somewhere in the realm of 200 would be good.

    Thanks
    Jon

    #831654

    Hey Jon,
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_excerpt_length( $length ) {
        return 20;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );

    The 20 is for 20 words, feel free to adjust to suit.
    This may also work for the manual excerpt length.

    Best regards,
    Mike

    #831924

    Mike,

    Thanks, that didn’t seem to work for either issue I am seeing.
    Yes Manual Excerpts is what I am using. It is the only way to populate an excerpt when using the Enfold AVIA editor for a post.

    #833980

    Hi,

    The widget should be controled with that.
    Can you please mark in a screenshot which is the exact area you are speaking for – so we are sure you are using the widget we have in mind please?

    Thank you very much

    Best regards,
    Basilis

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.