Title: Plugin Logo Missing | Admin Toolbar (Frontend)
Last modified: September 26, 2024

---

# Plugin Logo Missing | Admin Toolbar (Frontend)

 *  Resolved [generosus](https://wordpress.org/support/users/generosus/)
 * (@generosus)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/plugin-logo-missing-admin-toolbar-frontend/)
 * Good Day,
 * Your plugin’s logo does not display in the admin toolbar frontend, only the backend.
   
   Admin Toolbar (Frontend): [Logo Not Displayed](https://prnt.sc/6Np0Hfona6tB) 
   Admin Toolbar (Backend): [Logo Displayed](https://prnt.sc/KOl_ImX1rIl7)
 * Please review and provide a fix.
 * Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [generosus](https://wordpress.org/support/users/generosus/)
 * (@generosus)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/plugin-logo-missing-admin-toolbar-frontend/#post-18039446)
 * **Update:**
 * To assist you (and the community), I developed the code snippet provided below
   to solve the above. Add it to your functions.php file via the plugin, Code Snippets.
   Set the the code snippet to run only on the frontend.
 * **Result:** [Click here](https://prnt.sc/q3R4tQDqIqW2)
 * It would be great if you can incorporate the intent of the code snippet into 
   your plugin at your next convenient plugin revision.
 * Thank you!
 * —————
 * **Code Snippet: **(Add Plugin Logo to Admin Toolbar – Frontend)
 *     ```wp-block-code
       function override_admin_toolbar_analytify() {    if ( is_admin_bar_showing() ) { ?>      <style type="text/css">		  		#wp-admin-bar-analytify > .ab-item::before {			content: url(/wp-content/plugins/wp-analytify/assets/img/wp-analytics-logo.png);			margin-top: .1em!important;			margin-right: .05em!important;			}  		  		#wp-admin-bar-analytify:hover > .ab-item::before {					content: url(/wp-content/plugins/wp-analytify/assets/img/wp-analytics-logo-blue.png);			margin-top: .1em!important;			margin-right: .05em!important;		  }	 		        </style>   <?php }	} add_action( 'wp_head', 'override_admin_toolbar_analytify', 20, 3 ); 
       ```
   
 *  Thread Starter [generosus](https://wordpress.org/support/users/generosus/)
 * (@generosus)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/plugin-logo-missing-admin-toolbar-frontend/#post-18039767)
 * **Another Update:**
 * Use the code snippet given below when using the Script Manager feature of the
   plugin, Perfmatters to eliminate duplicate icons and redundant admin toolbar 
   quicklinks that appear on the frontend.
 * Cheers!
 * —————
 * **Code Snippet: **(Add Plugin Logo to Admin Toolbar – Frontend, Applicable Only
   When Using the Plugin Perfmatters)
 *     ```wp-block-code
       function override_admin_toolbar_analytify() {     if ( is_admin_bar_showing() ) { ?>       <style type="text/css">		  		#wp-admin-bar-analytify > .ab-item::before {			content: url(/wp-content/plugins/wp-analytify/assets/img/wp-analytics-logo.png);			margin-top: .1em!important;			margin-right: .35em!important;			}  		  		#wp-admin-bar-analytify:hover > .ab-item::before {					content: url(/wp-content/plugins/wp-analytify/assets/img/wp-analytics-logo-blue.png);			margin-top: .1em!important;			margin-right: .35em!important;		  }		/* Remove Duplicate Icon That Appears on Frontend When Perfmatters' Script Manager Used */		  		#wp-admin-bar-analytify .ab-icon {			display: none!important;		  } 		  		/* Remove Unnecessary Quicklinks That Appear on Frontend When Perfmatters' Script Manager Used */		  		#wp-admin-bar-gform-forms { 			display: none!important;		  }		  		#wp-admin-bar-gappointments { 			display: none!important;		  }		          </style>   <?php }	} add_action( 'wp_head', 'override_admin_toolbar_analytify', 20, 3 ); 
       ```
   
 *  [Emma](https://wordpress.org/support/users/emma24/)
 * (@emma24)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/plugin-logo-missing-admin-toolbar-frontend/#post-18040304)
 * Hi [@generosus](https://wordpress.org/support/users/generosus/),
 * Thank you for taking the time to work on the solution! But strangely, this issue
   is not replicated on our end. We have checked it on multiple sites and the icon
   is showing on the front-end admin toolbar.
 * Can you please debug on your end what can cause this issue? Thanks!
 *  Thread Starter [generosus](https://wordpress.org/support/users/generosus/)
 * (@generosus)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/plugin-logo-missing-admin-toolbar-frontend/#post-18040920)
 * Hi [@emma24](https://wordpress.org/support/users/emma24/),
 * Thanks for that! Please accept my sincere apologies. Problem fixed.
 * Using Perfmatters, I had inadvertenly dequeued the following asset in the frontend:
 *     ```wp-block-code
       /wp-content/plugins/wp-analytify/assets/css/admin_bar_styles.css
       ```
   
 * Have an amazing day!
 *  [Emma](https://wordpress.org/support/users/emma24/)
 * (@emma24)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/plugin-logo-missing-admin-toolbar-frontend/#post-18040931)
 * No worries, [@generosus](https://wordpress.org/support/users/generosus/).
 * Glad to know we are error-free here. 😄

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Plugin Logo Missing | Admin Toolbar (Frontend)’ is closed to new replies.

 * ![](https://ps.w.org/wp-analytify/assets/icon-256x256.png?rev=2901093)
 * [Analytify - Google Analytics Dashboard For WordPress (GA4 analytics tracking)](https://wordpress.org/plugins/wp-analytify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-analytify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-analytify/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-analytify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-analytify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-analytify/reviews/)

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [logo](https://wordpress.org/support/topic-tag/logo/)
 * [toolbar](https://wordpress.org/support/topic-tag/toolbar/)

 * 6 replies
 * 2 participants
 * Last reply from: [Emma](https://wordpress.org/support/users/emma24/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/plugin-logo-missing-admin-toolbar-frontend/#post-18040931)
 * Status: resolved