Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1137538

    Hi,
    I use the in the blog “excerpt with read more link” and at the moment only the title and read more are links. I would like to have also the excerpt the same link as the title and read more. Basicaly everything should be the link. Is this possible?
    Thank you

    #1137995

    Hi ananda,

    I don’t think it would be a good idea since sometimes excerpts contain links and it would cause undesirable result and breaks the layout.

    Best regards,
    Nikko

    #1138004

    Hi Nikko

    Thank you for the reply – well I don’t use any links in the excerpts so to give people more options to continue reading I would like to make the excerpt as a link. I know it is not ideal but I had already customers asking: “why is the text so short and I can not continue with reading?” – despite having a title and read more as a link :-/ Sometimes logic is simply not enough ;-)

    Regards
    Ananda

    #1138340

    Hi Ananda,

    I understand your concern, if blog breaks, this is one of the things you should look for.
    In your child theme, create a folder called includes, then paste loop-index.php (copy it from enfold’s loop-index.php in includes folder).
    Inside loop-index.php, find this line of code (line 216):

    $content_output .=  $content;

    replace with:

    $content_output .=  '<a href="' . $link . '">' . $content . '</a>';

    Hope this helps. :)

    Best regards,
    Nikko

    #1138376

    Thx Nikko, that did the job :-)
    Best Regards
    Ananda

    #1138390

    Hi,
    Glad Nikko was able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to make an excerpt in the blog a link as well’ is closed to new replies.