Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1301656
    Jessica Attard
    Guest

    To whom it may concern,

    How can I add a max character for the blog excerpt please?

    Regards

    #1301664

    Hey Jessica,

    Thanks for contacting us!

    Please add following code to Functions.php file of your child theme and adjust the value (“100”) as needed

    add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
    function avia_change_postgrid_excerpt_length($length)
    {
       $length = 100;
       return $length;
    }

    If you have any other questions or issues, please register to our support forum – https://kriesi.at/support/register/ using your purchase code and start new threads under Enfold sub forum :)

    Best regards,
    Yigit

    #1301918
    Jessica Attard
    Guest
    This reply has been marked as private.
    #1302365

    Hi,

    Thank you for the update.

    Which blog style or layout are you currently using? The filter above should work for the grid layout. If you are using a different layout, try this filter instead.

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

    You can also try this plugin.

    // https://wordpress.org/plugins/advanced-excerpt/

    Best regards,
    Ismael

    #1302383
    Jessica Attard
    Guest
    This reply has been marked as private.
    #1302384
    Jessica Attard
    Guest
    This reply has been marked as private.
    #1302794

    Hi,

    Sorry about that. Can we see the blog page? Please post the page URL in the private field so that we could check the blog posts element.

    Best regards,
    Ismael

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