[Solved] How to hide Stick and Close buttons for guests?
I'm not sure why, but these buttons are visible for guest users... they have options to Stick or Close new comment, as well as comments for other users... not sure if this buttons actually work, but they are visible. How to remove them?
The 'Stick' and 'Close ' buttons are visible only for admins and moderators (high-level users). It's not available for regular users and guests.
It also may be visible for the authors, who are the author of the current post. In other cases, it's never visible. I mean that if the current author is not the author of the current post the 'Stick' and 'Close ' buttons will not be visible.
Please leave some example URL to allow us to check the issue on your website.
Please let us know:
- Have you customized the wpDiscuz plugin?
- Do you have some cache plugins?
I only use simple css for display it in full width and for rounded avatars. Make my custom language translation, that's all. No active cache plugin at the moment, only Cloudflare cache.
It seems there is some other plugin caused the issue. Please deactivate the plugins one by one and check after each deactivation to find the problem maker one. Please let us know the result of the testing.
Please don't forget to press Ctrl+F5(twice) on frontend each time before checking to reload updated JS/CSS files.
I have around 50 active plugins, tried it to deactivate every single plugin 1 by 1, but nothing fix this issue. Maybe more than one plugin are conflicted... I don't know. Is it OK if I hide the buttons with CSS? Is this issue bad for security of my site?
yes @anonimniq you can hide the buttons.
You can hide the buttons via the options mentioned in this doc:
Is this issue bad for security of my site?
We cannot say this for sure but we highly recommend you find the problem maker plugin.
These options are disabled in setting, I can't see these buttons as an administrator, but they are visible for guests so I need another way to hide them.
ok then I think this is just a cache issue. Please clear your Cloudflare CDN cache and check again.
Here is described how to clear or temporarily suspend your Cloudflare cache:
Don't forget to press Ctrl+F5 before checking.
Still no luck.... I purge cloudflare cache, activate developer mode to disable it, delete my browser cache, reload the site many times but the issue is still there.
We've checked many times and don't find such an issue on all our test websites. This is something specific on your website. Could you please send the admin login details to info[at]gvectors.com email address to allow us to check it?
Thank you @anonimniq,
Please wait a bit. I'll update this topic once I get news for you.
Once we edit and update the current topic, the issue was resolved. Please check it. As I guess one of the active plugins has a hard cache system it caches the HTML.
Is it OK for new created posts, because content is generated from guest users and will be hard to update all new posts everytime someone post something. Also don't want post to appear as created from the admin... if this is only for old posts it's fine.
I just test it and the problem exist in every new post. I guess is somehow related to author permissions, because when post is edited and administrator is attached as an author problem is solved, but when posts are created from guests.... issue exist.
Please let us know, how have you enabled the guest posting? Which plugin do you use?
I use Gravity Forms + Gravity Forms User Registration Add-On + Lastform for front end guest posting.
Any solution for this? I can make function to assign an author with needed privileges to all posts but that's not a perfect solution.