All widgets in the admin area get an id
in the style widget-[global_counter]_[widget_key]-[widget_id]
, like widget-59_monkeyman_widget_shortcut-5
(installed widget) or widget-11_monkeyman_widget_shortcut-__i__
(an uninstalled widget in the list).
If your widget key contains something unique for all your widgets (like your company name), you can use this and add a substring attribute CSS selector (which works in most browsers). In my case div.widget[id*=_monkeyman_]
does the trick, so I add a little CSS snippet in the widgets.php
admin page header:
add_action('admin_print_styles-widgets.php', 'monkeyman_widgets_style');
function monkeyman_widgets_style()
{
echo <<<EOF
<style type="text/css">
div.widget[id*=_monkeyman_] .widget-title {
color: #2191bf;
}
</style>
EOF;
}
This gives me the following result:
Related Posts:
- Limit widget to certain sidebar?
- Organizing Code in your WordPress Theme's functions.php File?
- Change the link of ‘Howdy’ at the top right
- Delete Post From front Page ( With Wp-admin restriction )
- Hide a page in the admin end without a plugin?
- Prevent from deleting any user role but subscriber
- Set “Display name publicly as” to be usernames by default
- Widgets not working in Customizr but working in Appearance
- Get the sidebar ID in which the current widget was dropped
- How to exclude certain widget from showing up on home/front page? [duplicate]
- register_sidebar ‘after_widget’ on custom-built widgets not implementing, caused nested widgets
- I need some direction on how to have a sidebar based on meta rather than page
- Count widgets of a certain type
- Change HTML structure for custom menu in sidebar
- Create custom fields as image uploads [duplicate]
- Is there a quick way to find out what posts haven’t been tagged?
- Best practices regarding the creation of custom widgets?
- Choose sidebars column in widgets.php page [closed]
- “WordPress installations is currently out of date” problem with difficult situation [closed]
- Best practice for including plugin output in a template without using shortcode?
- Add a specific css to a widget
- How to append custom text to the output of ‘categories widget’?
- New checkbox in custom widget isn’t saving data
- Is it possible to display my theme sidebar in wordpress admin?
- Add a custom field when adding / editing a page / post in admin panel
- Wp-admin widgets have no title texts
- How to Fix WordPress Not Saving Settings?
- How to narrow the area between buttons on Helium theme sidebar? [closed]
- Custom Admin Section
- Google flagged a wp-admin redirect as phishing
- Handling dozens of sidebars
- Undeletable posts, users or other content
- Best strategy for providing theme options using customizer
- Custom tabs widget don’t work in google chrome, is blocked, do not change the tabs. Why?
- How do I include the sidebar (with Widgets) in a custom theme?
- Admin utility classes?
- Is there a filter to edit html of user-edit.php
- WordPress Child theme fails to override parent theme css
- Use of domain name
- How do I add something to the “Edit Tag” page in wp-admin?
- Why is my ‘export’ option missing?
- My widget not printing before_widgets and after widgets
- Move WooCommerce menu entries to top of dashboard
- How to create dependent dropdown custom field in wordpress admin post form
- theme customizer – can a single option pass multiple values?
- Available resources for learning WordPress 4.7.2 from the ground up?
- Why when I try to access to this old WordPress site it is opened the installation page?
- Add element to widgetpage
- Displaying Title in Title Tag on Edit page?
- jQuery UI Datepicker error
- Best way to disable sidebars on posts (only)?
- Get current session in WP admin
- How to remove admin menu pages inserted by plugins and themes in the top admin bar?
- How do I change the hover (focus) color of admin bar from frontend?
- Register_Sidebar overwriting itself and doesn’t exist in global $wp_registered_sidebars;
- Custom widget is not appearing in the admin area
- Redirect an entire WordPress site on a subdomain, except wp-admin
- How to add custom CSS and JavaScript file for wp- admin dashboard (backend)
- “Add New” button on custom post type grid
- WordPress Admin Toolbar Disappeared when moved site to subfolder
- Admin sometimes redirects to HTTPS
- Change users.php WP_User_Query
- Where is function to prevents non logged users access wp-admin?
- Enabled checkbox by default in WordPress widgets
- Is there a way to use get_sidebar() when no widgets are activated?
- Registering for a domain on WordPress
- Multiple rows of footer widget areas
- What do I need for testing a single script in admin
- How to remove Help tab and the Dashboard widget area’s empty border
- Widget page stopped loading
- WP Core hard coded to use http://www.w3.org/1999/xhtml not HTTPS
- Output column number according to active sidebars
- Can’t connect to WP-Admin, blank error message
- Create new user from phpMyAdmin
- How can I control which plugins run in the dashboard?
- how to stop wordpress admin menu from scrolling with page
- Check if widget is inside sidebar with PHP
- wp_get_update_data() function running on every admin request
- Hide user group filtering links
- Blank page when viewing wp-admin
- Tags Instead of Category
- How to change home page only in WordPress
- How to echo Widget Title in Custom Frontend-Template Box
- Customise the Category Widget
- Is there a way to dump all registered sidebar/widget?
- New Widget are not showing
- 404 Admin Error
- Allow different tags in widget titles
- Wp-Admin extremely slow!
- WordPress site stopped working after simply opening header.php in the wp-admin editor
- Widgets not showing on sidebars
- What’s the right way to share data between widgets?
- Run two wordpress on the same domain
- What conditional to use for dynamic sidebar check?
- GoDaddy hosting wp-admin problem
- CSS of the admin panel
- How to hide widget from certain category
- Remove/Hide a Widget on a Custom Template
- How do I make it so that the all users page is not a white screen?
- Cannot change Connection Information in admin interface