Support » Plugin: W3 Total Cache » Admin Bar De-activation

  • Hello,

    I added this code to wp-content/mytheme/functions.php

    function my_function_admin_bar(){
    return false;
    add_filter( ‘show_admin_bar’ , ‘my_function_admin_bar’);

    To disable the admin bar and the css is not loading anymore when Total Cache is activated.
    When I de activate Total Cache everything is working as normal.

    What is wrong the code added?

  • The topic ‘Admin Bar De-activation’ is closed to new replies.