• Skip to primary navigation
  • Skip to main content

BookingWP™

WordPress Appointment Booking Plugins for WooCommerce

  • Get Appointments
  • Contact
  • My Account

Modify BizzThemes admin menu icons

By default, you will see a white tie on a red background, which is our logo / symbol. You can also add your own icons, all from custom_functions.php file, bundled inside ‘custom’ theme folder.

  1. Open custom_functions.php file with theme custom Editor or locate it inside custom folder via FTP.
  2. Add this simple code:

    function bizz_admin_menu_icons() {
    ?>
    	<style type="text/css" media="screen">
    		/* All bizz menu styling */
    		#adminmenu #toplevel_page_bizzthemes div.wp-menu-image,
    		#adminmenu #toplevel_page_bizz-layout div.wp-menu-image {
    			background-image: url('<?php echo get_template_directory_uri() ?>/custom/images/bizzthemes-28.png');
    			background-position: 0 0;
    		}
    		#icon-bizzthemes {
    			background: url('<?php echo get_template_directory_uri() ?>/custom/images/bizzthemes-32.png') no-repeat;
    		}
     
    		/**
    		 * HiDPI Displays
    		 */
    		@media print,
    		  (-o-min-device-pixel-ratio: 5/4),
    		  (-webkit-min-device-pixel-ratio: 1.25),
    		  (min-resolution: 120dpi) {
     
    			#adminmenu #toplevel_page_bizzthemes div.wp-menu-image,
    			#adminmenu #toplevel_page_bizz-layout div.wp-menu-image {
    				background-image: url('<?php echo get_template_directory_uri() ?>/custom/images/bizzthemes-28-2x.png');
    				background-position: 0 0;
    				background-size: 28px auto;
    			}
    			#icon-bizzthemes {
    				background: url('<?php echo get_template_directory_uri() ?>/custom/images/bizzthemes-32-2x.png') no-repeat;
    				background-size: 32px auto;
    			}
     
    		}
        </style>
    <?php
    }
    add_action( 'admin_head', 'bizz_admin_menu_icons' );
  3. Replace links to our icons to your own, custom icons.

Before
admin-icons-before
After
admin-icons-after

 

Follow @bookingwp 900+ followers

  • About
  • Blog
  • Support
  • Terms
  • Privacy

© BookingWP™