Tagged: excerpt
Hello,
Is there any way to make do change the length of the excerpt in this widget? as for now, it’s too long.
Have a look on the right side on the webpage.
Regards,
Mikael Svensson
Hi mikaelsv!
Add this to your custom CSS.
.news-excerpt > p {
height: 39px;
overflow: hidden;
}
Best regards,
Elliott
Hi Elliott,
Tried that but nothing happened!?
Hey!
Here is what I see in your source code. The caret seems to be missing.
.news-excerpt p {
height: 19px;
overflow: hidden;
}
Delete your code and then type it out again to see if that works. Also try using !important like so.
.news-excerpt > p {
height: 19px !important;
overflow: hidden !important;
}
Regards,
Elliott
Thank you! but I would like to have a “read more” after my desired height. Is that possible?
Hi!
You can framework > php > class-framework-widgets.php, find this code on line 558:
the_excerpt();
Below, add this code:
echo "<a class='news-read-more' href='".get_the_permalink($the_id)."'>Read More</a>";
Please create a change log of this changes in case you update the theme.
Best regards,
Ismael