Add icon/link to top admin bar in responsive small screen mode
-
Hi,
I’ve added a custom link to my top admin bar by adding this to my functions file:
function wpb_custom_toolbar_link($wp_admin_bar) { $args = array( 'id' => 'userlink', 'title' => 'Users', 'href' => 'https://mysite.com/wp-admin/users.php', 'meta' => array( 'class' => 'userlink', 'title' => 'Users' ) ); $wp_admin_bar->add_node($args); } add_action('admin_bar_menu', 'wpb_custom_toolbar_link', 999);
This works fine on a desktop but when in responsive mode on a small screen, WP displays four Dashicons. How it decides which icons I’m not sure but I would like to make my custom link one of the four it displays when viewed on a phone. I’m guessing I have to add a media query in my CSS but where and how do I do this?
TIA.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Add icon/link to top admin bar in responsive small screen mode’ is closed to new replies.