Archived topic
Help to Create Same Design
12 replies · Started by Palash on January 22, 2023
Hello Support,
I would like to keep the design of my home page post like the screenshot. Please help me.
https://tinyurl.com/2jq3zzoa
Site: https://www.floridahipster.com/
Thanks
Palash
Hi Palash,
Is this site - https://www.floridahipster.com/ - your reference site or your actual site?
If it's a reference, can you provide the link to your site as well?
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
Check my site on Private information
To clarify, are you referring to adding breaks/new lines after every sentence for your excerpt?
Maybe Yes,
I want like this https://tinyurl.com/2jq3zzoa
It will be the same as a single post but has a limit of text.
Try adding this snippet:
add_filter('the_excerpt', function($content){
return str_replace('.', '.<br><br>', $content);
}, 10);
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
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.