WordPress.org

Ready to get started?Download WordPress

Forums

Travelify
[resolved] Number of Row in Slider (4 posts)

  1. imagipop
    Member
    Posted 6 months ago #

    Hello,

    How can I resize the number of the row displayed in the slider text ?

    Thank you

  2. Silkalns
    Member
    Theme Author

    Posted 6 months ago #

    You can create excerpt length filter to automate this process. Here is one example

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

    Or read more about it here: http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length

    Much simpler solution is to use add text manually in "Excerpt" field which you can find under each Post edit field. If this options is not there, you can enable it via "Screen Options" if it is not there by default.

    This way WordPress will display the entire text as Excerpt no matter of its length. 1 word or entire post.

  3. imagipop
    Member
    Posted 6 months ago #

    Thank you Silkalns,

    I use only Pages and not Post, this functionnality provided by wordpress seems works only for Post.

    Can I call the function from a Page and if yes, how ?

    Didier

  4. imagipop
    Member
    Posted 6 months ago #

    in fact I added your code at the end of the functions.php file of the theme and it works fine.

    Thank you

    Didier

Reply

You must log in to post.

About this Theme

About this Topic