[Support request] Change excerpt length with Elementor

Home Forums Support Change excerpt length with Elementor

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

    hi, i’m trying to change the length of the excerpt, but the value entered with elementor is ignored.

    I read other topics with the same problem, I tried to add the recommended codes but it’s not working, maybe I’m wrong.

    I tried these:

    add_action( 'after_setup_theme','tu_change_excerpt_length' );
    function tu_change_excerpt_length() {
        remove_filter( 'excerpt_length', 'generate_excerpt_length', 999 );
        remove_filter( 'excerpt_length', 'generate_excerpt_length', 20 );
        add_filter( 'excerpt_length', 'generate_excerpt_length', 15 );
    }
    add_action( 'after_setup_theme', 'tu_remove_blog_filters' );
    function tu_remove_blog_filters() {
        remove_filter( 'excerpt_length', 'generate_excerpt_length', 15 );
        remove_filter( 'excerpt_more', 'generate_blog_excerpt_more', 15 );
        remove_filter( 'the_content_more_link', 'generate_blog_content_more', 15 );
    }

    Thanks for your help

    #1024218
    David
    Staff
    Customer Support

    Hi there,

    what happens if you deactivate the GP Blog module in Appearance > GeneratePress?

    #1024671
    Roberto

    It isn’t activated

    http://prntscr.com/pe1inz

    #1024674
    Leo
    Staff
    Customer Support

    Hmm I don’t think GP would overwrite Elementor’s setting especially the blog add-on is not activated.

    Is the Elementor excerpt working normally if you switch to a twenty series WordPress theme temporarily?

    Let me know 🙂

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