Restrict wp-admin not working

This topic contains 9 replies, has 3 voices, and was last updated by  Paolo 5 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #469969

    nanera
    Expired Member
    Post count: 60

    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,
    Nikola

    #469992

    Alex Rollin
    Moderator
    Post count: 27815

    Are 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.

    #470006

    nanera
    Expired Member
    Post count: 60
    This reply has been marked as private.
    #470027

    Alex Rollin
    Moderator
    Post count: 27815

    Please turn off the ReCaptcha or finish setup, I am unable to login.

    #470035

    nanera
    Expired Member
    Post count: 60

    Yes, I’m sorry. ReCaptcha is turned off now.

    #470075

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    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

    #470118

    Alex Rollin
    Moderator
    Post count: 27815

    Read more in the docs about account management: https://wpgeodirectory.com/docs-v2/geodirectory/account-management/#wp

    #470156

    nanera
    Expired Member
    Post count: 60

    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.

    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.

    #470158

    nanera
    Expired Member
    Post count: 60

    I 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.

    #470208

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the reply that disappeared was marked as spam.

    Yes you need to avoid going off topic. This has been resolved.

    Thanks

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket