Archived topic
Edit button under my articles
9 replies · Started by François on February 11, 2021
Hello,
In my old theme, when I was browsing my blog, as I am an administrator, I saw an edit button under each extract in my archives and under each article.
This was very handy because if I saw an error, I would click on the button and I could automatically correct the article in the editor.
I didn't find this feature in GeneratePress (I'm Premium). Does it exist?
Thank you for your help.
Hi there,
create a new Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
Add this code to the Hook:
<?php edit_post_link(__('Edit'), ''); ?>
Select the Hook for where it is to display eg. generate_after_entry_header
Check: Execute PHP
Then set the Display Rules Location to where you want them displayed eg. Posts > All Posts
Thank you David, I'm going to learn how to use hooks!:-)
Friendly
François
Glad to hear that!
You're great David, your explanations are very clear, personalised, and it works!
Thank you so much.
Glad to hear that!
Hi,
I cannot make it work in search results.
An y idea ?
THanks and regards.
Yiannis
Hi there,
Change the Hook to generate_after_entry_title
Hi ! Thanks. I already did it but it doesn't work.
Can you share a link to your site ?
If you want to share the link privately, then please raise a new topic where you can use the Private Information field.