NooTheme Premium WordPress Theme › Forums › JobMonster › How to hide WordPress admin bar for candidates and Employers
Tagged: Wordpress admin
- This topic has 5 replies, 2 voices, and was last updated 3 years, 9 months ago by dangdv.
-
AuthorPosts
-
3 years, 9 months ago #1204986
How to hide WordPress admin bar for candidates and Employers.
This looks not very proffesional, how can I change this without the use of a plugin?
Many thanks
3 years, 9 months ago #1205036Dear, please tell for me more details what you want change ? i will check to help you.
3 years, 9 months ago #1205041See the screeshot, there is an admin bar foor logged uin employers and candidates. This only needs to be there for admins.
Attachments:
You must be logged in to view attached files.3 years, 9 months ago #1205055Dear, i check again, i see a problem in theme with setting 'Hide Admin Bar' in Jobmonster, we're will fix it in next update version.
Best regards.
3 years, 9 months ago #1205060Ok and when is the next update. We almost launching the site somewhere next week. Otherwise I need to use a temporary plugin
3 years, 9 months ago #1205090Now, you can go to file 'themes/noo-jobmonster/framework/admin/noo_member.php' search code
// Remove admin bar and redirect profile page to site interface // if( self::get_setting('hide_admin_bar', true) ) { // add_action( 'admin_init', array( $this, 'prevent_admin_access') ); // add_action( 'user_register', array( $this, 'hide_admin_bar_front') ); // add_action( 'wp_before_admin_bar_render', array( $this, 'stop_admin_bar_render') ); // add_action( 'after_setup_theme', array( $this, 'remove_admin_bar' ) ); // // Stop WooCommerce redirect to My Account page. // add_filter( 'woocommerce_prevent_admin_access', '__return_false' ); // }
Change to (see attachment)
//Remove admin bar and redirect profile page to site interface if( self::get_setting('hide_admin_bar', true) ) { add_action( 'admin_init', array( $this, 'prevent_admin_access') ); add_action( 'user_register', array( $this, 'hide_admin_bar_front') ); add_action( 'wp_before_admin_bar_render', array( $this, 'stop_admin_bar_render') ); add_action( 'after_setup_theme', array( $this, 'remove_admin_bar' ) ); // Stop WooCommerce redirect to My Account page. add_filter( 'woocommerce_prevent_admin_access', '__return_false' ); }
Attachments:
You must be logged in to view attached files. -
AuthorPosts
You must be logged in and have valid license to reply to this topic.