[Support request] Edit button under my articles

Home Forums Support [Support request] Edit button under my articles

Home Forums Support Edit button under my articles

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1653971
    François

    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.

    #1654269
    David
    Staff
    Customer Support

    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

    #1654286
    François

    Thank you David, I’m going to learn how to use hooks!:-)

    Friendly

    François

    #1654538
    David
    Staff
    Customer Support

    Glad to hear that!

    #1654754
    François

    You’re great David, your explanations are very clear, personalised, and it works!
    Thank you so much.

    #1654807
    David
    Staff
    Customer Support

    Glad to hear that!

    #2442564
    Yiannis

    Hi,

    I cannot make it work in search results.

    An y idea ?

    THanks and regards.

    Yiannis

    #2442618
    David
    Staff
    Customer Support

    Hi there,

    Change the Hook to generate_after_entry_title

    #2442809
    Yiannis

    Hi ! Thanks. I already did it but it doesn’t work.

    #2442845
    David
    Staff
    Customer Support

    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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.