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


    when i click on my blog menu, i only have 5 lines for the preview of my latest news :

    Do you know to have twice the number of lines?




    you can open up your functions.php file and add this to the bottom:

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

    You can change “20” to any value you’d like, this’ll change the excerpt length.

    (A nice extra:)

    If you’d like to link the dots ( […] ) you can also add this to the functions.php

    function new_excerpt_more($more) {
    global $post;
    return ' <a href="'. get_permalink($post->ID) . '">[...]</a>';
    add_filter('excerpt_more', 'new_excerpt_more');


    I’m sorry Chris but i’m a newbie. Can you explain me how, where and with which software will i do that?

    Do i only have to paste this at the end?


    In your theme folder you’ll find functions.php (so you’ve downloaded the theme – Flashlight>functions.php). In this file you can paste the previously mentioned code at the bottom. You can use any program to do this from notepad to Coda or Dreamweaver or many other alternatives – as long as you overwrite the file again as .php

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

The topic ‘short text on the blog page’ is closed to new replies.