- This topic has 8 replies, 2 voices, and was last updated 3 years, 4 months ago by
David.
-
AuthorPosts
-
September 17, 2019 at 5:09 am #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?
September 17, 2019 at 5:43 am #1011472David
StaffCustomer SupportHi 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 17, 2019 at 6:08 am #1011482Enrico
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 tuttoSeptember 17, 2019 at 6:23 am #1011491David
StaffCustomer SupportYou can change the Read More label in the Customizer > Layout > Blog > Read More … i think it supports HTML/Special characters. Let me know
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 17, 2019 at 6:31 am #1011493Enrico
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
September 17, 2019 at 6:40 am #1011497Enrico
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.September 17, 2019 at 7:41 am #1011558David
StaffCustomer SupportIn read more filter this line sets the label:
__( 'Read more', 'generatepress' )
Change the
Read more
to whatever you need.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 17, 2019 at 7:49 am #1011666Enrico
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.September 17, 2019 at 8:02 am #1011705David
StaffCustomer SupportYou’re welcome
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.