How to customize thesis theme teaser Word Count ?

As you know Thesis WordPress Theme is one of the best SEO optimized theme available in the market today.Advanced Customization of  thesis WordPress theme is always a difficult job if you are not familiar with basic HTML and CSS.Other wise it is one of the best theme which can be customized and designed in any way.Today I will show you how to restrict your teaser Word Count in Thesis theme.

Thesis

You can restrict your teaser word count by adding below code in to your custom_functions.php  file.Make sure you are taken backup of your Database before doing any changes.If you are not familiar with what you are doing there are chances to mess up with your design.

Copy below code and paste it in to your custom_functions.php file.

[php]
//change Teaser word count

function excerpt_length($length) {
return 49;
}
add_filter(‘excerpt_length’, ‘excerpt_length’);

[/php]

change the value “49” to any number ,it will make your Thesis teaser word count to your mentioned values.let me know if you are facing any issues.

Get Thesis Theme from Diythemes for your new Blog/Website.

Add a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.