Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1200488

    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

    #1201335

    Hey Ramon,

    The excerpt will display with this setting
    Image 2020-04-06 at 20.35.07.png

    You just have to click on the link to go to the news.
    Image 2020-04-06 at 20.36.01.png

    Best regards,
    Victoria

    #1201393

    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)

    #1201419

    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

    #1201503

    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

    #1202400

    Hi volmering,

    Well, you can copy this file to the child theme and edit this file
    /framework/php/class-framework-widgets.php

    Image 2020-04-09 at 18.02.17.png

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1202619

    hey victoria,

    i appreciate the screenshot. but i dont know exactly what you mean

    #1202898

    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>";
    

    around here
    Image 2020-04-11 at 14.58.32.png

    in this file /framework/php/class-framework-widgets.php

    in this function avia_newsbox towards the end of it.

    Best regards,
    Victoria

    #1203597

    worked in this file, but not in the child-theme.

    anyways, thanks for your help.

    can be closed too!

    #1203708

    Hi volmering,

    Great :)

    We are closing the thread.

    If you need further assistance please let us know in a new one.
    Best regards,
    Victoria

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Enfold Latest News – add Read More Link and excerpt’ is closed to new replies.