Archived topic
Button disappears when I add a blog excerpt
8 replies · Started by Clare on September 24, 2021
I've added an excerpt on the blog post page for my latest blog post (rather than going with the auto generated one) but it has resulted in the read more button disappearing on this page https://youreasymove.co.nz/client-stories-blog/. Any ideas? Thanks
Hi there,
this article explains how to add the read more when using a manual/custom excerpt:
https://docs.generatepress.com/article/activating-read-custom-excerpt/
Thanks David
I've always had a problem finding and viewing the main blog post page in edit mode. I've just been looking in my pages section and seem to have now done something which means the content in view mode is no longer showing - see https://youreasymove.co.nz/client-stories-blog/. Any ideas?
OK, I did a bit of googling and have retrieved the content - it's now showing. So where do I add in the button code? Thanks
The code can be added using one of these methods:
Adding PHP: https://docs.generatepress.com/article/adding-php/
Using the Code Snippets plugin would be the easiest if you aren't using a child theme already :)
Thanks. Leo. I've downloaded the Code Snippet plug in. Which section to I turn on and add the read more button code to?
The options are:
Example HTML shortcode
Example CSS snippet
Example JavaScript snippet
Order snippets by name
Order snippets by date
Also, will the button's appearance match the others on my site?
Hi Clare,
You need to add a new snippet, then copy paste the code to the new snippet, then click the save changes and activate button.
Let me know if you need further assistance :)
OK, thanks Ying, found the add new snippet menu option!
No problem :)