Restrict wp-admin not working
This topic contains 9 replies, has 3 voices, and was last updated by Paolo 7 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: Restrict wp-admin
-
AuthorPosts
-
February 19, 2019 at 12:33 pm #469969
Hello dear support,
I just upgrade from V1 to V2 and Restrict wp-admin is not working. Users can see the bar and they can access wp-admin dashboard. How this top bar can be hidden? In V1 it was hidden.
I’m keeping my backup cloned site which is with V1.Best Regards,
NikolaFebruary 19, 2019 at 1:32 pm #469992Are you using a role manager plugin, so that some users have more than one role?
We can check the settings, just write back in a private reply with your site URL and WP Admin credentials.February 19, 2019 at 1:49 pm #470006This reply has been marked as private.February 19, 2019 at 2:13 pm #470027Please turn off the ReCaptcha or finish setup, I am unable to login.
February 19, 2019 at 2:31 pm #470035Yes, I’m sorry. ReCaptcha is turned off now.
February 19, 2019 at 5:49 pm #470075Hi,
we can remove the tool bar by default. It’s a “WP rule”.
All you need is this snippet of code:
add_filter('show_admin_bar', '__return_false');You ca add it to your child theme functions.php or better using the code snippets plugin.
Thanks
February 20, 2019 at 3:30 am #470118Read more in the docs about account management: https://wpgeodirectory.com/docs-v2/geodirectory/account-management/#wp
February 20, 2019 at 8:00 am #470156Thank you Paolo, this function do the work. It also hide the bar for the admin account, but it’s ok I can still enter the /wp-admin/ directory manually.
I found also some other small issue. I don’t know if I have to open topic for this also. As I’m just starting with V2 I guess I will find also other small issues and maybe it will be better if I prepare a separate topic for them. I think I can solve this with my CSS skills. But I just want to tell you that, because I think is a bug.
When I’m editing GD Details — GD Details template and adding shortcode for this single listing page view the code for gd_post_images and specially image_size tag dose not work properly. No matter what size I choose – thumbnail, medium, medium_large, large, post_thumbnail etc. the image stay in full width view.
I am checking the classes for this image and I found that “.geodir-image-container ul.geodir-images li img” is the one who control the size. There I see only min-width: 92%; max-width: 100%; Because I set it to thumbnail, I see also that there is a class for this image “size-thumbnail”, but it seems there is no such a class in css file or there are no settings for it.
I just wanted to put a small picture at the top of the listing page to not be full sized image.
Let me know if I should prepare separate topics for other issues that I find. Thank you for your time.
February 20, 2019 at 8:09 am #470158I don’e see my post. I edit it and it seems like it disappear. But when I tried to post it again I see “ERROR: Duplicate reply detected; it looks as though you’ve already said that!”
Thank you Paolo, this function do the work. It also hide the bar for the admin account, but it’s ok I can still enter the /wp-admin/ directory manually.
February 20, 2019 at 4:15 pm #470208Hi,
the reply that disappeared was marked as spam.
Yes you need to avoid going off topic. This has been resolved.
Thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket