[Resolved] Excerpt "read more" style

Home Forums Support [Resolved] Excerpt "read more" style

Home Forums Support Excerpt "read more" style

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1011455
    Enrico

    Hi,
    I am using this code https://docs.generatepress.com/article/activating-read-custom-excerpt/

    to have the read more text in the blog Excerpt. I am not using the button code.

    Is it possible to change the text and/or make the text bold?

    #1011472
    David
    Staff
    Customer Support

    Hi there,

    in the code you added for the custom read more edit:

    $output = sprintf( '%1$s <a href="%2$s">%3$s</a>',

    to

    $output = sprintf( '%1$s <a href="%2$s" class="read-more">%3$s</a>',

    It will then receive the same styles of the standard read more link.

    #1011482
    Enrico

    Hi David, your solution is even better.

    I tried and I see only one difference: this CSS code now work also on the excerpt

    .entry-summary a.read-more {
        font-weight: bold;
    }

    The read more text in the excerpt is different from the “Read more label” that I have set in the blog layout.

    This is the read more label I use and I like = ▼Leggi▼
    This is the excerpt default I would like to change = Leggi tutto

    #1011491
    David
    Staff
    Customer Support

    You can change the Read More label in the Customizer > Layout > Blog > Read More … i think it supports HTML/Special characters. Let me know

    #1011493
    Enrico

    Yes David, but it was already done, I set it in “Customizer > Layout > Blog > Read More…”
    Infact, this is the read more label I use and I like = ▼Leggi▼

    But the excerpt default is still= Leggi tutto

    See the site I have linked

    #1011497
    Enrico

    To make more clear my problem:

    1) The excerpt is a little text I write on some post and, in the blog category, it show the default text for read more, in italian “leggi tutto”.
    2) The standard of wordpress for the entry summary is the text in the first lines of the post.
    Now, the read more of the entry summary is set in customizer to “▼Leggi▼”.
    I would like to have the same text ▼Leggi▼ on both.

    #1011558
    David
    Staff
    Customer Support

    In read more filter this line sets the label:

    __( 'Read more', 'generatepress' )

    Change the Read more to whatever you need.

    #1011666
    Enrico

    Thanks a lot, ‘read more’ was translated automatically into ‘Leggi tutto’.
    But now that I have set it to another text, it keep the new text.

    #1011705
    David
    Staff
    Customer Support

    You’re welcome

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