• Home
  • About Us
    • Who is CNFdesigns
    • Faq
    • How It Works
    • CNFhosting Packages
  • Testimonials
  • Portfolio
  • Blog
  • Contact Us
Home / help / How to disable ADMIN bar for every user except admin

How to disable ADMIN bar for every user except admin

09 April 2016
help

In functions file, place the following:

add_action(‘after_setup_theme’, ‘remove_admin_bar’);

function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {
show_admin_bar(false);
}
}

← How to make header background image scale on mobile
How to embed a shared google calendar with different colored events →
  • Request a Quote Today

CNFdesigns

Annette Fotos

7844 Foothill Knolls Dr., Pleasanton,

925-922-1054

sales(at)cnfdesigns.com

LATEST WORK

  • CityServe of the Tri-Valley Website

      VISIT WEBSITE: http://cityservetrivalley.org

HOW CAN WE HELP?

  • Request a Quote
  • Privacy Policy
  • Contact Us
Request a Quote Today!

© Copyright 2016 CNFdesigns All Rights Reserved