Vijay Kumar
asked 7 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
DominicStaff
answered 7 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: http://imgur.com/itOmPGf

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

Regards,
Dominic

Vijay Kumar
replied 7 years ago

It work,

Vijay Kumar
replied 7 years ago

thanks

Mirek Kroupa
answered 7 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.

DominicStaff
answered 7 years ago

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

Powered by DW Question & Answer Pro