How to customize the excerpt ..to resize it ?

  • cosmin.toma

    #5702

    i want to look something like this… The first problem is that i want to be smaller because they are to big for me …i have posts that i have 2 lines or 3 …

    i will give a beer 😀 if someone tell me how to customize the excerpt to look somethink like the site above. take a look at my site

    Prasanna SP

    #32519

    Add this to child theme’s functions.php file.

    <?php
    function custom_excerpt_length( $length ) {
    return 15;
    }
    add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
    ?>

    return 15 limits the excerpt length to 15 words.

    cosmin.toma

    #32520

    ok ..i did this ..but now its seems like that the whole excerpt is the same ..

    take a look at my site : http://iphun.ro

    the box of the excerpt is like the old ..the dimensions are not quite that i expected .

    can you give me a quick tip how to add or something to look something like this http://www.idevice.ro ?

    Prasanna SP

    #32521
    Quote:
    ok ..i did this ..but now its seems like that the whole excerpt is the same ..

    What same? I can see a smaller excerpt in your site.

    Quote:
    the box of the excerpt is like the old ..the dimensions are not quite that i expected .

    Do you want to remove … appended to excerpt? if so, try this,

    remove_filter( 'excerpt_more', 'graphene_auto_excerpt_more' );

    function custom_remove_excerpt_more( $more ) {
    return '';
    }
    add_filter( 'excerpt_more', 'custom_remove_excerpt_more', 999);
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.