From firebug, you can see the ID name of the text widget, which is “text-some number” and this is what we need to customize. the specific WordPress widget has the class name “widget” (from class=”widget widget_text”.). All we need to do is add a new CSS selector to style the selected widget.
#sidebar .widget #text-3564277 {
background-color: #fff;
border: 1px solid #ddd;
padding: 10px;
}
or you can go for any plugins like widget css classes
which will add a field to all wordpress widgets for entering the custom class. then you can style that class.
Related Posts:
- How to display custom widget anywhere
- How to use wp_dequeue_style() for style enqueued in WP_Widget class
- Insert a span inside widget title to give a different color to the second word
- Add New Footer Widget Area with Limited Options?
- Custom shortcode in widget forced to top of widget
- Big side banners
- Customized widget area – how to override or filter class xoxo?
- How to add css classes to widgets using functions.php?
- wordpress widget textbox in the sidebar
- How to change text widget title h2 to h1
- Font awesome Icon HTML in widgets disappear on save
- Text Widget Links Not Working
- When adding a widget, what kind of widget should I used to add images and text and styling?
- different class (css) for sidebar widgets
- WP – Genesis – How to get the content of a widget in php? [closed]
- Text widget doesn’t save the content
- Hide widget (and white space) on specific resolution [closed]
- Widget without DIV wrapper
- Widget on the right side of the page overlaps with the left side [closed]
- Registering a stylesheet inside my WordPress widget
- How to change the default class for the widget title?
- Override WordPress Widget CSS Classes?
- Add a specific css to a widget
- How to make home widgets appear horizontally
- Header Sidebar Won’t Move Lower – Want to Align with Header Logo [closed]
- How to add custom tinymce plugin to new text widget
- Address automatically generated ids in css [closed]
- Sidebar widgets – dynamic CSS : problem with widget-title
- How to change widget’s form color in admin?
- accessing wordpress serialized data outside wp
- How to customize wordpress sidebar widget
- How to change widget title in wordpress version 5.8.1?
- How to get individual values from custom widget?
- Title not Emptying in a Widget
- Creating a simple button inside of a widget
- Sidebar widgets are over the content in mobile mode, how can I fix it? [closed]
- Widget text color change
- Default WordPress widgets always appear
- can’t edit widgets after moving from subfolder to root
- Display widget outside sidebar?
- Add custom class to a tags [closed]
- Big side banners
- Widget Disappearing in IE
- Add New Footer Widget Area with Limited Options?
- How do I get shortcode, widget and template tag CSS to load in the head only as required? [duplicate]
- How to add an image as a bullet point in a specific WordPress widget? [closed]
- Text Widget Not Working
- Text Widget creates a
- WP_Widget deprecated error in WordPress V4.3
- What is the quickest way to make a widget?
- Changes in widget customizer not triggering ‘save and publish’
- What is the use case for the “Class” parameter in register_sidebar?
- How to execute SQL SELECT query and see the results?
- WordPress “include TEMPLATEPATH” or?
- Need help adding additional controls to a custom widget Part 2
- How to add the widgets manually to the sidebar?
- How to check if widget has automatic title
- Display sidebar that created in functions.php
- Image picker widget
- When you register a sidebar in WordPress, is it possible to choose in what order it appears in the admin
- How to enable “shift-click to edit this widget” functionality on a custom widget?
- How the widget can be run by shortcode
- add widgets to dashboard for easy access for clients?
- Wrap all default widget into div tag
- How to filter products using filter products by attribute widget and OR logic between different product attribute types?
- How to hide CSS by default and show on button press
- Can you target a widget_class in a register_sidebar?
- Default widgets assignment – isn’t working
- How to add custom widget above admin_footer
- How to create a ‘single’ category widget for woocommerce plugin [closed]
- Change The Woocommerce Product Categories Dropdown Widget Placeholder Text
- Disable a plugin’s widget
- My Custom Widget does not save in sidebar
- How to add urls in html widget in a gravity form? [closed]
- Create Dashboard Widget with form to keep team’s record
- flush_widget_cache is deprecated. Which method should i use instead?
- How not to display an instance of a widget dynamically?
- Add links widget to self-hosted blog?
- Link a widget or find the php that creates the widgets
- How to add Ajax to the default widget calendar to support next/previous months loading?
- Add a widget to a static front page
- Last Update time in widget
- Adding dashboard widgets to show – custom post type stats, information from other plugins
- Problem with WP_Query loop and search term
- Widget title showing below widget
- Get a list of all Widgets registered in WordPress admin widgets-area
- how to get value of a select box in custom widget wordpress
- Using the_widget Multiple Times
- Does current page contain widget or sidebar
- Nonce and widget
- How to give a File Upload option in wordpress Widget backend?
- Adding Widgets to Reactor Theme (based on Foundation 4)
- Can I use widgets & shortcode if I need to return an array?
- Taxonomies not showing in WP Dashboard Right Now widget
- trying to Change to wp_register_sidebar_widget
- How to delete Jetpack Widgets from the Widgets page in admin panel [closed]
- How to customize dynamic_sidebar rendering? [closed]
- Widget does not work with WooCommerce enabled
- How to show WordPress Dashboard Widgets on Frontend?
- is it possible to create custom widgets page in admin?