Archived topic
Missing Read More label or button in the Blog page
14 replies · Started by Robert on April 23, 2022
Hello,
I have a small problem with the Blog page. I cannot manage to have control over the excerpt word count (it doesn't matter how what number I put in there, there is no change), I also cannot find a way to display read more label, and also when I check the "Display read more button" nothing happens.
The picture here: https://imgur.com/a/Vyuilxd
Can you help me fix this, please?
Kind regards,
Robert
Hi there,
have you added a custom excerpt to your post ?
I do not know what or how....
There are two types of excerpt in WordPress , the automatic one, which the GP Blog settings can control the length of.
And then theres the Excerpt Field in the Post Editor, if you add text that to that ( Custom Excerpt ) then it cannot be controlled by the blog settings.
Do you have the latter one ?
If not - can you share a link to a page where I can see the issue ?
I have no clue what you are talking about :) sorry! I just imported the posts from my previous Elementor website. I can't seem to find an excerpt option on the posts page or in any of the posts.
Can you share a link to where I can see the problem excerpt ?
Here is the page: https://staging.retetediabetici.ro/retete/
All of your excerpts look to be different lengths, and they all seem to end on the first sentence.
This means either:
a. a custom excerpt has been added:
https://docs.generatepress.com/article/excerpt-issues/#read-more-label-or-button-not-showing
b. there is a custom function that is changing the excerpt.
but it is not the normal behaviour of the theme
OK, I found the issue. So confusing to have documentation in English and the website in the Romanian language. So, somehow the description of the post has managed to be written in the excerpt field. I remove it from 2 posts and then everything went to normal and I can use the GP Blog Settings.
Now, do you have any idea of how I can bulk remove excerpts from all the posts at once because taking them one by one will take ages?
Try adding this PHP Snippet:
add_filter( 'get_the_excerpt', function( $text ) {
if ( !is_single() )
return wp_trim_excerpt();
return $text;
});
How to add PHP:
https://docs.generatepress.com/article/adding-php/
That solved the issue. Thank you so much! Now I have another one and I'm thinking to tell you about it here not starting a new topic.
I moved the website from the staging subdomain to the live one and before I did that there was a section in the middle of the front page that looked like this: https://imgur.com/a/OGuUks7
Now the images are gone and look like this https://imgur.com/a/02vFGuC
You can also see the live page here: https://retetediabetici.ro/ Scroll to the middle of the page, please.
I have deactivated all the plugins one by one, cleared cache, and minified files everywhere....couldn't find a way to make it work. Any idea?
Those image URLs are still pointing to the staging site ie.
https://staging.retetediabetici.ro/
You can either re-add those images, or do a Search and replace to swap the staging domain for the live domain
Not in my admin https://imgur.com/a/i2Awbo9
I removed them even so....replaced them with different ones and again added them still no change.
I did everything including pulling my hair off :) Finally, I just restarted the server and now it seems it's working.
Anyway, you have to send me a picture of you...I owe you a statue for the help you provided. Can't thank you enough!
Next issue I have: https://imgur.com/a/rAzuPSt
Can you please help me style this? I can't find a way to increase the icons or do anything to them in the desktop or mobile version.
Haha - glad to hear that worked.
Would you mind raising a new topic for the that question :)
Sure, Thanks a lot!