How to add admin menu icon for new plugin ?
-
I’m new learner of WordPress Plugins development. I was created a admin bar menu for my plugin but I can’t add menu icon.
$wp_admin_bar->add_menu( array( 'id' => 'Visit', 'title' => __('<img src="'.get_bloginfo('wpurl').'/icon.png" style="vertical-align:middle;margin-right:5px" alt="Visit Site" title="Visit Site" />Visit Site' ), 'href' => get_bloginfo('wpurl') ));
I used this code but the icon didn’t come.
Anybody can help me ?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to add admin menu icon for new plugin ?’ is closed to new replies.