← Back to Blog

Set your custom styles and colors in WP Adminify Free

add_action( 'admin_head', function () {
	echo '<style>
		body.wp-adminify {
			--adminify-primary: rgb(14,147,152);
			--adminify-menu-hover-bg: rgb(14,147,152);
			--adminify-menu-active-bg: rgb(14,147,152);
			--adminify-submenu-text-hover-color: rgb(14,147,152);
			--adminify-submenu-active-color: rgb(14,147,152);
			--adminify-notif-bg-color: rgb(14,147,152);
		}
	</style>';
} );

To implement this code, you should paste it into the functions.php file of your WordPress theme. This will ensure that the custom styles are applied whenever the admin area is accessed.