Support » Theme: Flat Bootstrap » Preview word count

  • Resolved 213edu

    (@213edu)


    Hi great theme here,
    just wondering is there a way to limit the word count of preview on the main page? I want to reduce it to like only 10 words on the preview

Viewing 2 replies - 1 through 2 (of 2 total)
  • You might try adding …

    function xsfb_excerpt_length( $length ) {
    	return 10;
    }
    add_filter( 'excerpt_length', 'xsfb_excerpt_length' );

    … to your functions.php

    Theme Author Tim Nicholson

    (@timnicholson)

    gWorlds, I believe that is exactly what 213edu was looking for. I’ll mark this topic as resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Preview word count’ is closed to new replies.