Site logo

Archived topic

Help to Create Same Design

12 replies · Started by Palash on January 22, 2023

Viewing posts 1–13 of 13

Check my site on Private information

To clarify, are you referring to adding breaks/new lines after every sentence for your excerpt?

It will be the same as a single post but has a limit of text.

It's not working and not getting good support from the GeneratePress support team. Always getting the wrong codes and answers. Please test every code before support to the customer. I am waiting for code that really works for my object.

I tested that before I sent it. How did you add the code?

Are you using custom excerpts? If you're using custom excerpts, you can add break lines there.

For regular excerpts, that code should work.

I want to show the same as a single post(format, spacing, paragraph, and all) but has a limit of text.

Hi there,

WordPress strips HTML from automatic Excerpts.
The example site you reference is not using auto excerpts.
It is using a the More Tag to define the excerpts:

https://wordpress.com/support/wordpress-editor/blocks/more-block/

If you use that method then your excerpts will display with the formatting.

The alternatives:

1. to use an ( out dated ) plugin: https://wordpress.org/plugins/advanced-excerpt/

2. write a PHP function, there are examples of this on Stackexchange.

I don't know about coding. So please give the exact code for this.

I don't have the code, and i don't recommend you try to add code for it. It is a really complicated process as you can see from the Stackexchange link i provided.

You should use the More block for this.
If not, use the Plugin.

This archived topic is closed to new replies.