- This topic has 5 replies, 2 voices, and was last updated 5 years, 4 months ago by Skandha.
-
AuthorPosts
-
November 21, 2018 at 1:53 am #159750MarcoooooParticipant
Hello !
I’m still working on the http://www.spff.ch website.
The landing page displays the articles. I put an article “article test” :
– the text is a “lorem ipsum” with 5 paragraphs
– the second paragraph is composed of 2 words “Lorem ipsum” with a linkOn the landing page, the paragraphs are grouped and the link is not active. I have to click on “Continuer la lecture” to get the full article, with the active link.
How can I configure this to have at least the 2 or 3 first paragraphs and (most important) the link?
Thanks for your precious help!
Marc
November 21, 2018 at 6:08 am #159762SkandhaParticipant@marcooooo: For that Go to => Posts => Edit that particular posts => On the top right hand corner you you will see Screen Options. Click on it and Check the Excerpt Option. Now you will see an Excerpt Box below your text editor. Here you can insert the text you want to display as excerpt for this post.
So to display Lorem Ipsum as a link put in inside
<a>
tag like the following in the excerpt box.
<a href="https://www.google.com/">Lorem Ipsum</a>
Let me know if this works out!
Kind Regards,
SkandhaNovember 21, 2018 at 10:11 am #159784MarcoooooParticipantHi Skandha,
Seems to works, but we have to write the article twice… And the people who got to maintain these things will be lost if they need to enter some html tags (I’me sure it will be several mistakes)…
I will look forward if a plugin solving this is available…
Have a nice day!
November 26, 2018 at 1:44 am #160096SkandhaParticipant@marcooooo: For that you will need to create a child theme and do a bit of customization. Let me know if you are familiar with child theme customization so that I can provide you the code otherwise I suggest you to hire a customizer.
Kind Regards,
SkandhaNovember 26, 2018 at 1:59 am #160099MarcoooooParticipantHi !
I’m already working with a child theme. So if you can give the code, it will be great.
In the meantime, I’ve found “Advanced Excerpt”, a plugin that does what I need. But of course if I can avoid to load some plugin, it will be better…
Have a nice week!
Regards,
Marc
November 26, 2018 at 3:46 am #160114SkandhaParticipant@marcooooo: Go to => Child Theme Folder => functions.php and add the Code in this link.
Let me know if this works out!
Kind Regards,
Skandha -
AuthorPosts
- The topic ‘Preview of articles with links’ is closed to new replies.