Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #2411571
Top area for subscribers
Closed

Comments

  • Stefano Becheroni started the conversation

    Hi,
    I would like to know if it's possible to hide the three links "Theme options", "Support center" and "Documentation" from the administration top area of Wordpress for the users wiht role "subscriber".

    I would like to know also if it's possible to hide the link "The gem" from the administration left sidebar of Wordpress for the users wiht role "subscriber".

  •  7,092
    Oliver replied

    Hi,

    Add this code to the functions.php of the child theme:

    function thegem_remove_post_type_none_admin() {
     if( !current_user_can( 'administrator' ) ):
            remove_action('admin_bar_menu', 'thegem_admin_bar_site_menu', 100);
      endif;
    }
    add_action( 'init', 'thegem_remove_post_type_none_admin' );
     if( !current_user_can( 'administrator' ) ):
    add_action('admin_head', 'custom_style'); 
      endif;
    function custom_style() {
      echo '<style>
        li#toplevel_page_thegem-theme-options {
            display: none;
        }
      </style>';
    }
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Stefano Becheroni replied

    Thanks Gregor, I'll try it.

  •  7,092
    Oliver replied

    You're welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Stefano Becheroni replied

    It works perfectly.
    Thanks again.

  •  7,092
    Oliver replied

    You're welcome! It would be great if you could rate us with the 5 stars on ThemeForest.  Just go to your downloads on ThemeForest ( https://themeforest.net/downloads ), find TheGem and rate it there, we would very appreciate your rating!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • Stefano Becheroni replied

    Five stars rating active :)

  •  7,092
    Oliver replied

    Thank you so much!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver