Cosmin Corcoveanu
asked 6 years ago

I’ve purchased and installed the DW Focus. Very nice but I have two problems.
First problem: My previous articles (and future also) doesn’t have excerpts. Under the DW Focus, in some circumstances (for example in DW Focus Category widget) it displayed, as excerpt, the first xxx characters from the article’s text. This is exactly the way I want but I have a big problem: the text from article displayed as excerpt is huge. I would like to use fewer character. It is possible?
Second problem: the whole index page is dancing left and right when I move it using trackpad (on a Mac) just like as it would have a hidden element which increase the width.
Could you take a look please at my site: http://www.evorba.ro and advice me to solve these problems?
Thank you

1 Answers
DominicStaff
answered 6 years ago

To resolve this issue :
– Open the functions.php file
– Add the following code to the bottom file.

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

Hope this helps!

Powered by DW Question & Answer Pro