hey enfold team,
i hope all of you are healthy!
is it possible to add a snippet in the functions.php in the enfold latest news widget to display the excerpt and a read more link?
greetz ramon
hi victoria,
thx. my bad. sorry for my english. i know that. but i would like to have a “read more” link.
example:
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua… (read more)
Hi,
Did you try the more tag or the excerpt box? The read more link will appear once you set the excerpt. Or you can try this plugin: https://wordpress.org/plugins/advanced-excerpt/
Best regards,
Jordan Shannon
hi shannon,
thanks, but i talk about about the enfold post widget. there is no “read more” link. and i know that you can read the full post by click on the title. but my custumer would like a “read more” in the widget
hey victoria,
i appreciate the screenshot. but i dont know exactly what you mean
Hi volmering,
You need to add the code for the read more link in that file.
Please try to add this code:
echo "<a class='read-more-link' title='".get_the_title()."' href='".$link."'>Read more</a>";
in this file /framework/php/class-framework-widgets.php
in this function avia_newsbox towards the end of it.
Best regards,
Victoria
worked in this file, but not in the child-theme.
anyways, thanks for your help.
can be closed too!
Hi volmering,
Great :)
We are closing the thread.
If you need further assistance please let us know in a new one.
Best regards,
Victoria