How to hide the top admin bar at the frontend of wordpress 3.4?
Answer / Raj Kumar Srivastava
To hide the top admin bar at the frontend of WordPress 3.4, add the following code to your theme's functions.php file: nn`function my_admin_bar_hide() { if (!current_user_can('edit_theme_options')) { wp_dequeue_script('wp-admin-bar'); } } add_action('get_header', 'my_admin_bar_hide');`
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you clear the cache on a website?
Do I need to know any programming to make updates?
What are the different types of gadgets present in the wordpress dashboard?
What is a permalink example?
Tell me what are the plugins you can use to create contact form in wordpress?
Explain me how to change the length of the default wordpress excerpt?
How can I host my wordpress website for free?
What are template tags in wordpress?
Will comparison of string "10″ and integer 11 work in PHP?
What is the current version of WordPress?
Are wordpress sites free?
What are the most exciting and useful features of wordpress?