When I visit a page or post on the front end of my site, while logged into WP Admin, I want to be able to click a button in the WP toolbar at the top so I can edit the page or post, which saves having to search for the page via the WP admin tools.
Is there any way I can add this please? I have tried editing PHP using Code Snippets plugin. Or do I need to change my theme?
I tried disabling GeneratePress and activating the Twenty Twenty Two Theme, without success.
I was about to deactivate my plugins, though this is a slow manual one by one process these days because, oddly, the bulk plugin action drop-down menu no longer includes ‘Deactivate’ (or Delete), when I found a code solution which solves the issue for both pages and posts.
In case it helps anyone else here is the code in input into Code Snippets plugin: