- This topic has 9 replies, 3 voices, and was last updated 3 years, 3 months ago by
Leo.
-
AuthorPosts
-
August 30, 2020 at 2:36 am #1423680
Nitin
I tried adjusting post excerpt length on Blog Page. I go to Customize>>Layout>>Blog>>Content>>Content Type= Excerpt and put there a limit to show words. But it is not changing. I used to have a read more button too, but nothing.
August 30, 2020 at 10:41 am #1424171Leo
StaffCustomer SupportHi there,
Looks like you are using the custom excerpt metabox:
https://www.wpbeginner.com/plugins/add-excerpts-to-your-pages-in-wordpress/When the custom excerpt metabox is used, the entire content in the metabox displays – otherwise it defeats the purpose of using the excerpt metabox.
Let me know if this makes sense 🙂
August 30, 2020 at 8:52 pm #1424507Nitin
Hi Leo,
Thanks for your response.
But I want to make you sure that I am not using any custom excerpt meta box, neither by using any coding nor by any plugin. I just write 1-2 lines in WordPress’ inbuilt excerpt box.Is it creating the issue? If yes, then what should I do to provide an excerpt to search engines?
August 30, 2020 at 8:59 pm #1424509Leo
StaffCustomer SupportI just write 1-2 lines in WordPress’ inbuilt excerpt box.
That’s actually what I’m referring to – the content in there overwrites the word count option in the customizer.
If you just want the button to show, then add this PHP snippet:
https://docs.generatepress.com/article/activating-read-custom-excerpt/#read-more-buttonAdding PHP: https://docs.generatepress.com/article/adding-php/
August 30, 2020 at 9:27 pm #1424521Nitin
If you just want the button to show, then add this PHP snippet:
https://docs.generatepress.com/article/activating-read-custom-excerpt/#read-more-buttonIf I use the above-mentioned Read More button, will it be after the manual excerpt I use through the inbuilt WordPress excerpt box?
Is it necessary to use the Code Snippets plugin while adding PHP? Means any other option to change it without using a plugin?
August 31, 2020 at 4:37 am #1424856David
StaffCustomer SupportHi there,
Scenarios:
1. If you DO NOT use the Custom Excerpt field then GP will automatically display the Read More button on a post.
2. If you ADD a Custom Excerpt to any post then you must add the snippet here for the Read More button to display.If you do not want to use Code Snippets then you would need to install child theme:
https://docs.generatepress.com/article/using-child-theme/
Then you can add the code to Child Theme – functions.php
August 31, 2020 at 4:46 am #1424868Nitin
Thanks, David.
If I don’t use a child theme and want to add the Read More button, then where should I add those snippets? Means is it possible to add the snippets without any Code Snippets plugin? I want to know where should I use the snippets in the Theme Editor option?August 31, 2020 at 5:13 am #1424904David
StaffCustomer SupportThere are only 2 choices:
1. Use Code Snippets
2. Use a Child Theme.You MUST NOT edit the parent theme files as those changes will be lost when the theme is updated.
August 31, 2020 at 8:15 am #1425265Nitin
Thank you both. Generatepress support is really awesome.
August 31, 2020 at 8:59 am #1425335Leo
StaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.