Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3030833
How to remove "clear critical css cache" from admin bar?
Closed

Comments

  •  4
    pierreto007 started the conversation

    Hi,

    I actually use Query Monitor plugin to try resolve speed problem and my Admin Bar is full.

    The menu "clear critical css cache" it not very usefull, and very long, and is accessible via the customiser, then I don't need it in Admin bar.

    Thanks

  •  2,610
    PenciDesign replied

    Hi,

    Please install the Code Snippet plugin, then create a new snippet with the following content:

    function cs_remove_cachebtn( $wp_admin_bar ) {
        $wp_admin_bar->remove_node( 'pencilazy-clearcache' );  
    }
    add_action( 'admin_bar_menu', 'cs_remove_cachebtn', 999 );

    Regards,
    PenciDesign.



  •  4
    pierreto007 replied

    I try to limit plugin of my website and try to delete some, but it's not easy to find solution, because I try to resolve speed problem.


    Then I won't use that, hope you'll add an option to remove it in next update.