WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Admin Bar De-activation (1 post)

  1. analogique
    Member
    Posted 1 year ago #

    Hello,

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

    <?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?
    Thanks

    http://wordpress.org/extend/plugins/w3-total-cache/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic