Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17051

    I would like to disable theme option on the Frontend tool bar. Any help would be appreciated.

    Thanks,

    #94025

    Hi gnetsystems,

    I believe you are referring on the top admin menu that appears on both backend and frontend. We can get rid of it using this code, however, this would also remove this on the top admin menu on the backend:

    #wp-admin-bar-avia {
    display: none;
    }

    or

    #wp-admin-bar-avia {
    display: none !important;
    }

    Hope this helps. :)

    Regards,

    Ismael

    #94026

    Not the solution I was expecting. I was looking for a hard coded solution that would allow hide the menu when the user is not logged in, as the menu is displayed to all users, I need it for backend user only. If you could point me in right direction that would help.

    Thanks

    #94027

    Imho a plugin adds the admin bar to the top because (by default) the admin bar is only visible for logged in users. However you can try following css code:

    #wpadminbar {
    display: none !important;
    }

    .logged-in #wpadminbar {
    display: block !important;
    }

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

The topic ‘Disable Theme Options for frontend!’ is closed to new replies.