Visible wp-admin to users??? - by dunies

This topic has 4 replies, 2 voices, and was last updated 3 years, 9 months ago ago by Olga Barlow

  • Avatar: dunies
    dunies
    Participant
    March 2, 2021 at 11:25

    I updated last night the new version and I found out that wp-admin is visible to users!!! Why??? How can I disable it???

    Update
    ————–
    I had to disable it by adding the code below in fuctions.php. However this is not a solution. I’m expecting yours. Also every time I save the header builder I have to clear browser data to see the changes. This is tragic and so much time consuming. Theme still needs fixing.

    add_action('after_setup_theme', 'remove_admin_bar');
    function remove_admin_bar() {
    if (!current_user_can('administrator') && !is_admin()) {
      show_admin_bar(false);
    }
    }
    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 2, 2021 at 15:58

    Hello,

    1) Go to Appearance > Themes > install and activate Storefront theme. Check if you have the same issue with the customer account when the Storefront theme is activated.

    2) Use Clear cache extension https://chrome.google.com/webstore/detail/clear-cache/cppjkneekbjaeellbfkmgnhonkkjfpdn We save custom styles of theme options to CSS file, Chrome caches CSS files, that’s why if you change some styles you need to clear browser cache.

    Regards

    Avatar: dunies
    dunies
    Participant
    March 3, 2021 at 00:54

    I cannot do that to a live website just to check it. I use the theme since 2015 and never had such issue before. Problem came up after the update as I haven’t any plugins installed. I solved the issue with the above script. May you must check it.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    March 3, 2021 at 17:10

    Hello,

    Point is that we don’t have such problem with our test installations. So, something is with your site settings or third-party plugins that you use. If you can’t change settings on the current site then maybe create a staging site (full copy of the existing one) and check it there with the default theme. Reply back with access to your staging site if the problem appears with our theme only.

    Regards

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.