The lenght of the excerpt seems to be limited on the homepage (recents posts widget) but not on the archive page (category). See the attached screenshots, please. Is the a bug or a feature? The archive page looks perfectly fine. Why the difference?
Attached files: excerpt1.JPG excerpt2.JPG
Weta's widgets limit the excerpt to 35 words. On archive pages the default excerpt length, which is customizable using plugins for example, is being used.
Unfortunately this cannot be changed without changing the theme's code.
thanks for the info. Is there a certain reason for the different excerpt lengths? In my humble opinion, it would be more consistent to use the same functions for both the startpage and the archive pages. By the way, the word count is not a proper method to keep an image-text-grid consistent. 35 words might result in 4 lines of text or in 7 lines. The Weta theme handles this very well. I can't see any horizontal misalignment. There is really no need to limit the lenght of the excerpt, is there?
Weta reduces the excerpt lengths in the smaller appearing post teasers on its front page. There is more space available on archive pages for example. We know that counting words is anything but ideal, but that's the way WordPress currently produces its default excerpts.
This is completely a design decision.
I have the same question as Mike and would like to edit this limit in the theme code. Could you tell me where I have to change the word limit from 35 into another number in the theme editor?
Thanks in advance!
in the inc/widgets.php you'll find the following line:
<?php echo weta_excerpt(35); ?>
You can change the value of 35 there, but please keep in mind, that direct theme code changes will be overwritten by theme updates. I strongly recommend using a child theme for direct code adjustments. A prepared child theme folder is linked in the Weta documentation.
Unfortunately changing the code for the widgets in Weta using a child theme would be a lot of work compared to the simple replacement of this single value in the original code.