How to format the excerpts in the Featured Content section

  • Author
    Posts
  • #162940

    Hi,

    As you can see in my site, I use the excerpts to display some text below the titles in my Featured Content section. That works, apart from the fact that I can’t control how the excerpt is formatted, and there are ugly line breaks. How can I control the line breaks, or at least how can I insert non-breaking spaces between specific words ? Or maybe, another solution would be to increase (or decrease) the width of the excerpt ?

    Thanks in advance for your help.

    Great theme by the way !

    The blog I need help with is espaces-atmospheres.fr.

    #162965

    tarasdashkevych
    Theme Author

    Hello,
    Thank you for using the Venture! I am happy to hear you like it :)

    The theme displays a short description in the Featured Content when the text is added to the Excerpt field: https://wordpress.com/support/excerpts/#create-an-excerpt

    “… and there are ugly line breaks”
    – I can see additional HTML tags in some of your excepts which causing the line break. Here is an example: https://snipboard.io/30gGCb.jpg

    Make sure your expert field does not include any of these tags to avoid unnecessary line breaks.

    “Or maybe, another solution would be to increase (or decrease) the width of the excerpt ?”
    – You can change the width of the content section using this custom CSS:

    
    .featured-content .hentry-inner .th-content {
      max-width: 900px;
    }
    

    Please let me know if you have any additional questions.

    Kind regards,
    Taras

    #162970

    Thank you for your answer, much appreciated !

    #162977

    tarasdashkevych
    Theme Author

    You are very welcome! :)

    Kind regards,
    Taras

The topic ‘How to format the excerpts in the Featured Content section’ is closed to new replies.