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?
- Limit number of Widgets in Sidebars
- How can we make managing lots of pages in WordPress Admin better?
- Add “external” link to admin menu in the backend
- Retrieve each widget separately from a sidebar
- Adding a menu item in the admin bar
- how to force caching of wordpress admin
- How to disable 3.3 Tooltips?
- wp login redirects to homepage
- Customise search form in the Widget
- Retrieve Path of admin.php
- Schedule cron event from widget
- List sidebars on a page
- wp-admin does not redirect to dashboard
- Dynamic content in a widget
- Change WP-Login or WP-Admin
- the_widget() and widget’s ID
- Custom roles showing HTML entities in title form field
- How to show postmeta in custom columns for the posts screen?
- Can I individually style items in the backend widget list?
- How to stop – Database Update Required – from happening again?
- using wp_sprintf at wordpress option page,
- Can’t login to Dashboard when changing site URL to HTTPS
- Not Found (404) error on admin page, CSS gone on blog
- Add a class to a dynamic sidebar’s wrapper
- Disable wordpress reordering functions in backend screen element
- How to change popular term checklist title when edit post?
- WordPress server change – slow admin login time for first time
- I can´t access my admin panel. I tried all possible solutions
- Programmatically add widgets to sidebars
- Are widgets meant to be used outside of sidebars?
- Ajax solution similar to WP Categories functioning in Admin area
- Difference between admin and user admin
- Hooks: admin_footer and admin_print_footer_scripts not working?
- Editing edit-tags.php page in wp-admin
- What is the correct way to get only display plugin for Administrator Only
- displaying an error before update_post_meta
- Display posts from category in post content?
- Outputting something based on the presence of post variable in admin screens
- “Add New” button on custom post type grid
- What conditional to use for dynamic sidebar check?
- Dismiss Admin Pointer Temporarily
- WordPress admin right sidebar isn’t working
- links to Media Library content in sidebar per page
- Why is registering a sidebar for each page causing my sidebars to reset?
- Last x Posted Categories?
- WordPress menu to change page title
- Change admin_title of a plugin using code snippet/functions
- What hooks should you use to create a table only once?
- Redirect WordPress login for customers but not admin
- Unable to open specific posts on WP Dashboard [duplicate]
- How to create custom backend admin menu in different languages?
- How to list newly ftp added HTML webpage under Pages section of wp-admin?
- Hi everyone, I have Problem with using wp_die()
- WordPress wp-admin Page
- Make Widget appear on Dashboard
- Disable flyout (popup) menus in backend
- WordPress, content editor default type
- Random HTTPs redirections at admin area in shared hosting
- Loading scripts only if a particular shortcode or widget is present
- Blank sign in page
- add_post_meta displays in admin edit area
- Forcing WordPress Administration onto a separate SSL Host
- customize footer widgets area
- How to prevent Google adsense invalid impressions while performing admin tasks on my wordpress site?
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?