Archived topic
continue reading
16 replies · Started by Leo on March 21, 2021
Hello,
Your theme was recently recommended to me and what shall I say: I purchased the pro version the very first day!
Being a WordPress newbie I am really happy with all the settings you offer (and not having to bother with CSS myself). There is a lot to be discovered here!
Two small issues:
- I changed the "continue reading" option in the blog settings to "button" and this seems to work fine for most articles, but not for all. Is this a know issue and is there a solution for it? As far as I can tell the articles do not differ in terms of structure and layout. I would have included some screenshots, but I cannot see how to do that.
- is there a way to change the GeneratePress menu to English (instead of Dutch, which is the language I normally use for my blog). I am asking because the (very extensive) documentation you offer is obviously all in English, and it would makes things easier for me.
Many thanks and, again, my compliments for such a fine product. Well worth the money!
Hi there,
Any chance you can link us to the site in question?
You can use the private information field.
Let me know :)
Hi Leo,
Sure, the website's address is http://www.myberlin.nl and here's an article where the "continue reading does not appear: Berlijn blijft boeien. Probably easiest to copy and paste to the search field on the right (which is called zoeken).
Many thanks.
Regards
Leo
So this is the issue?
https://www.screencast.com/t/kOoJ8LZD
Are you using any custom functions in this site?
If not can you disable all plugins except GP premium to and let me have another look?
Please make sure you are using the parent theme as well if you are using a child theme.
Yes, that's the issue. I have now disabled all plugins (except for GP premium).
Sorry, I do not know what custom functions are, so I suppose the answer is no. This article is definitely built the same way as other articles.
Hope this will help. If necessary, I you may access my website yourself. See private information I sent you.
Many thanks
Hi Leo,
I have reactivated the plugins as my website does not work properly otherwise. However, please feel free to access my website whenever necessary, I gave you the access details in my previous mail.
Many thanks.
Leo
The site isn't in English so it's tough for me to navigate.
I think I see the difference though - that post seems to be using the custom excerpt metabox?
https://docs.generatepress.com/article/excerpt-issues/#read-more-label-or-button-not-showing
The "lees verder →" link isn't generated by GP and looks like it's manually added.
Hi Leo,
Yes sorry: I'm afraid my website is Dutch. However, I could meanwhile solve the problem thanks to your help. There were indeed some articles where excerpts had been manually added and I have changed this now.
Thanks a lot for your excellent service!
Regards
Leo
No problem :)
Dear Leo,
I hope you are doing well. I just happily renewed my subscription for another year of Generate Press Premium and I would like to come back to the above discussion today, in spite of it being well over a year old. But it looks as if I am having problems again with the "continue reading" issue. I justed started using a plugin which offers an easy way to include meta descriptions for my articles. So far, the introductory text of each article consisted of just the first few lines of the story, but I now want to correct this at last and give a genuine summary of up to 160 characters.
My website can be found here: https://www.myberlin.nl
Testwise, I just made the change for the most recent article "het groene hart van Berlijn") and, as you can see, the nice looking "continue reading block (which is "lees verder" in Dutch) has disappeared here. It is still available for all other articles, for which I have not yet made any changes.
The following categories of my website are affected:
https://www.myberlin.nl/archieven/category/berlijnse-verhalen
https://www.myberlin.nl/archieven/category/volkskrantreizen
Is there an easy solution to solve this problem? I hope it can be done via the Generate Press menu, I am no good at CSS!
Many thanks for your kind help.
Best wishes,
Leo
Hi Leo,
If you want the “continue reading”/read more to appear for posts that have a custom excerpt, you’ll need add a PHP snippet.
Specifically, the one here in this article: https://docs.generatepress.com/article/activating-read-custom-excerpt/#read-more-button
Adding PHP reference: https://docs.generatepress.com/article/adding-php/#code-snippets
Hope this helps!
Dear Fernando,
May thanks for your prompt reply. I have done as explained by you and have created these two snippets. However, there was a warning when creating the snippet for the button (it said: error in line 3) and I could not activate it.
Would you care to have another look at it, please?
Many thanks!
Best regards,
Leo
Just add one of the two snippets. If you need the button, the one you’ll need to add is the second one.
That's great, Fernando! Works fine! There is just a tiny little thing I still would like to alter:
As I will now change all articles to have a real excerpt (of up to 160 characters) instead of just showing three or four lines of text I would like to change the text of the button from "Lees meer" (which is Dutch for "Continue Reading") to "Lees verhaal" (which is Dutch for "Read Story").
I made this text change in Customizer > Layout > Blog but funnily enough only the articles that I have not yet changed now show this text. The one article for which I made an excerpt still says "Lees meer" ("Continue Reading"). I simply do not know how to correct this. Could you please be so kind as to help me out again?
Many thanks!
Regards
Leo
You can replace it in the code.
Example:
add_filter( 'wp_trim_excerpt', 'tu_excerpt_metabox_more' );
function tu_excerpt_metabox_more( $excerpt ) {
$output = $excerpt;
if ( has_excerpt() ) {
$output = sprintf( '%1$s <p class="read-more-button-container"><a class="button" href="%2$s">%3$s</a></p>',
$excerpt,
get_permalink(),
__( 'Read Story', 'generatepress' )
);
}
return $output;
}
I replaced Read More with Read Story.