Site logo

[Support request] Help to Create Same Design

Home Forums Support [Support request] Help to Create Same Design

Home Forums Support Help to Create Same Design

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #2505054
    Palash

    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

    #2505290
    Fernando
    Customer Support

    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

    #2505347
    Palash

    Check my site on Private information

    #2505422
    Fernando
    Customer Support

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

    #2505428
    Palash

    Maybe Yes,
    I want like this https://tinyurl.com/2jq3zzoa

    #2505431
    Palash

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

    #2505437
    Fernando
    Customer Support

    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

    #2505439
    Palash

    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.

    #2505456
    Fernando
    Customer Support

    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.

    #2505487
    Palash

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

    #2505703
    David
    Staff
    Customer Support

    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.

    #2505882
    Palash

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

    #2506169
    David
    Staff
    Customer Support

    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.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.