This topic has 9 replies, 3 voices, and was last updated 9 years by Radu.

  • Author
  • #140563
     meltdown
    Participant

    Hello – I would like to increase the length of my excerpts. I tried adding the following to my kleo-child functions.php but it had no effect:

    function custom_excerpt_length( $length ) {
    return 70;
    }
    add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );

    Any ideas? Thank you

    #140593
     Radu
    Moderator

    Instead of 70 put 300 or a larger value

    Tell me where you want to modify the excerpt (screenshot that points out)

    Let me know

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #140644
     meltdown
    Participant

    Hi Radu – I have increased the value to 300 but still no change.

    There are 2 places that I would like the length of the snippet to be increased:

    1: at this page (see attached image 1)

    2: at the bottom of this page (see attached image 2)

    Thanks

    #140905
     Radu
    Moderator

    Hi,

    When I have investigated the WooCommerce sidebar problem i saw in functions.php the snippet but with wired quotes i’ve corrected that quotes please check now

    Cheers

    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #140957
     meltdown
    Participant

    Hi Radu – Nope, the snippet is still much shorter than it should be (I’ve flushed the cache and checked again). Any thoughts?

    Thanks again

    #140995
     Radu
    Moderator

    That it should work, odd try with this instead

    http://pastebin.com/raw/bQNqX2TH

    Let me know

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #141128
     meltdown
    Participant

    That did the trick – Thank you! I’ve marked this as resolved 🙂

    #141211
     Radu
    Moderator

    Great

    Have a nice week

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #154860
     LittleClue
    Participant

    Hi, I have the same problem. Changing the excerpt length. Have seen a few posts like that but no solution. Using this code:

    <?php
    function custom_excerpt_length( $length ) {
    return 20;
    }
    add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );
    ?>

    #154977
     Radu
    Moderator

    Hi,

    Please follow this link: https://archived.seventhqueen.com/forums/topic/excerpt-lenght-in-wordpress-blog-page/#post-154906

    Let me know

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?