Useful Tip | Code Snippet to Restyle Admin Toolbar Quicklinks

[ad_1]

*** USEFUL TIP ***

The code snippet provided below changes the styling of the WP Fastest Cache admin toolbar quicklinks (backend and frontend) to match WordPress’ styling standards.

Before Applying Code Snippet: Current Quicklinks Styling
After Applying Code Snippet: WordPress Quicklinks Styling

Give it a spin!

————–

Code Snippet: (Change WP Fastest Cache Quicklinks Styling to Match WordPress Styling Standards)

function override_admin_toolbar_quicklinks_css() { 

if ( is_admin_bar_showing() ) { ?>

<style type="text/css">

#wp-admin-bar-wpfc-toolbar-parent .ab-empty-item:hover {
background-color: transparent!important;
cursor: pointer!important;
color: #72aee6!important;
}

</style>

<?php }

}

add_action( 'admin_head', 'override_admin_toolbar_quicklinks_css', 20, 3 );
add_action( 'wp_head', 'override_admin_toolbar_quicklinks_css', 20, 3 );

  • This topic was modified 34 seconds ago by generosus.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer