Site logo

Archived topic

Add Edit Link to Posts -and- Pages

3 replies · Started by Linda on January 25, 2019

Viewing posts 1–4 of 4

Hi, GP - Hope all is well!

Before I go any further, I have to mention that I am thrilled with GeneratePress. I've worked with it for the past week and found it to be possibly the best theme I have ever used - and I have been building sites since 1994. Thanks so much for your work - I greatly appreciate it!

I did run into a little snag this afternoon. I want to make available an "edit" link on every post and page. I followed your instructions below and it worked great for posts -- but not for pages.

I used GP Hook Elements to add this PHP snippet:
<?php edit_post_link(__('Edit'), ''); ?>
https://generatepress.com/forums/topic/edit-link-in-published-post/

I should know the answer to this but I'm stumped. Do you have any suggestions? I'm hoping you can help.

Thanks for all, Linda

PS -- I know you may have to look at my site to see where the problem might be, however, please, keep in mind, I am nowhere near finished. Still have lots of sections to add and much more tweaking across the entire site. But I'm having a great time - GeneratePress is a pleasure to work with!

Hi there,

Glad you're enjoying GeneratePress! :)

Is that code added using our Elements module? If so, do you have Pages added under the Display Rules?

Yes, I used Elements Module.- I set display rules for entire site.

I also tried display for both posts and pages. Posts work fine. Pages still wont display the edit link.

Which hook are you adding it to? Some hooks are post/page specific.

Maybe try generate_after_content?

This archived topic is closed to new replies.