Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #159750
    Marcooooo
    Participant

    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 link

    On 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

    #159762
    Skandha
    Participant

    @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,
    Skandha

    #159784
    Marcooooo
    Participant

    Hi 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!

    #160096
    Skandha
    Participant

    @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,
    Skandha

    #160099
    Marcooooo
    Participant

    Hi !

    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

    #160114
    Skandha
    Participant

    @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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Preview of articles with links’ is closed to new replies.