Ajax or Remove Edit Button(Post) in Categories/Homepage/Modules

Posted in: Newspaper
Post count: 25

Hello,

Congrats on your theme.
Great work.

I’m managing a medium to high news website (~20k users/day).
We are currently using Cloudflare’s cache everything rule.

We have an issue with the theme because if an author checks the frontpage or any category page when its not cached by Cloudflare, Cloudflare caches the admin version.
The admin version of the page shows an edit button near the top left of the image of the article (on hover).

So this is viewable to the visitors as well.
On the other hand the edit button is not visible to the author/admin if the page is “cached by the visitor first”.

We need the same functionality as “POST SETTINGS” > “Ajax view count (keep counting with cache plugins)” > “ENABLE / DISABLE AJAX POST VIEW COUNT” which works great even with Cloudflare’s cache everything rule so the edit button is loaded after page load via AJAX.

If that not possible at the moment please let me know how to disable Edit button all together(PHP).
I’ve tried to hide with CSS (display:none !important;) but that’s hackish and unsecure solution.

Kind Regards

Post count: 20688

Hi,

That edit button will be displayed on modules if the user that is currently viewing it is logged and has the right to edit the posts. But in this situation with the cache it seems to not function correctly.
The code that displays this link is in this file
https://www.screencast.com/t/f2EYmws1n
Removing or commenting that code will remove the edit button.

Post count: 25

Great.
That works.

May I request this(ajax edit button load) as a future feature?

Thank you

Post count: 20688

Noted. Thank you for the suggestion.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.