Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • #178149


    We are in need for creating an admin account without the option to change the (kriesi theme) theme settings.

    We use the plugin ‘user role editor’ to create an admin account with limited option.
    Do you have experience with that and know how to disable your theme settings theme (varaibles, etc.).
    Or do you advise another tool/plugin that can achieve this behaviour.

    Love to hear from you.


    Hey hotspot!

    You can use this plugin:



    Hi Ismael,

    We tried the plugin but this does not provide a good option to do this.
    It hides the kriesi menu, but from the admin bar you can access ‘theme options’ and acces the kriesi menu from there.
    Maybe you can have a look at ‘user role editor’ and advice us what ‘custom capability’ we need to add to restraign access from the kriesi menu.

    Hope you can help.



    You can add following code to Quick CSS or into Custom.css file inside Enfold/css folder to remove theme options from admin bar

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



    Hi Yigit that doen not really work.
    ANy other solutions you can advise?



    It does work for me
    You can add !important to force it

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



    correct, but if you click on a link in the cms that directs to that area.
    Then that area/page does show…



    That is correct, the above isn’t a true disable as the theme doesn’t have anything like that at the moment. You could try looking into one of the various user permissions plugins available which would allow you to set users specific permissions.

    But a theme side function or filter to just disable its admin area isn’t available right now.



    Yigit, i also noticed that the css:
    #wp-admin-bar-avia { display: none!important; }

    only works when you are in the front-end.
    When going to the back-end its seems that the custom.css file is not loaded.
    Any suggestions how to resolve that?



    Add this on your functions.php:

    function avf_admin_head() {
        echo '<link rel="stylesheet" media="screen,projection" type="text/css" href="http://localhost/kriesi/enfold/wp-content/themes/enfold/css/custom.css">';

    Change href=”http://localhost/kriesi/enfold/wp-content/themes/enfold/css/custom.css to href=”http://www.your-site-name/wp-content/themes/enfold/css/custom.css.

    Then edit the css > custom.css file, add this code:

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



    Hi Ismael, thanks for the fast reply!

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

The topic ‘disable Theme setting area in cms for specific users (admin)’ is closed to new replies.