Archived topic
Excerpt "read more" style
8 replies · Started by Enrico on September 17, 2019
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?
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.
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
You can change the Read More label in the Customizer > Layout > Blog > Read More ... i think it supports HTML/Special characters. Let me know
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
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.
In read more filter this line sets the label:
__( 'Read more', 'generatepress' )
Change the Read more to whatever you need.
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.
You're welcome