Vijay Kumar
asked 9 years ago

On homepage, the categories are showing long description?

On the homepage, i have used DW category widget for each category and the description for one post is very long and I want to short it. Please help me in shorting the description for the categories.

3 Answers
answered 9 years ago

To shorten a post on the homepage and have a “read more” link.

Please log in to Dashboards > Post > add new > import content.
Then, in the content frame , please choose a section of text you want, and click on “More” button. Please take a view below:

See the screenshot:

Hope this helps!
Should you have other issues, feel free to contact us.


Vijay Kumar
replied 9 years ago

It work,

Vijay Kumar
replied 9 years ago


Mirek Kroupa
answered 9 years ago

Vijay Kumar:
Add to functions.php file:

add_filter( ‘excerpt_more’, ‘dw_excerpt_more’ );
function custom_excerpt_length( $length ) {
return 20;
add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );

Size “return” set as you need.

answered 9 years ago

@ Mirek Kroupa
Thank for your help. I appreciate it !

Powered by DW Question & Answer Pro