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
- Programmatically add widgets to sidebars
- WordPress 3.8 – Dashboard 1 Column Screen Options
- Executing Javascript When a Widget is Added in the Backend
- Loading scripts only if a particular shortcode or widget is present
- Limit number of Widgets in Sidebars
- How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?
- Give Editor Access To Sidebar
- How to load Widget javascript + css files only if used?
- Where is the content of widgets stored in mysql table
- Hide specific categories from category widget
- changing wp-admin/widgets.php
- Add class to before_widget from within a custom widget
- How can I use the built in WordPress “browse link” functionality?
- Is there any way to dynamically alter widget titles?
- Translate widget titles using qTranslate plugin
- Can the new 4.8v text widget visual editor be removed?
- Code for Recent Posts Widget
- Get number of widgets in sidebar
- Text Widget creates a
- Can a widget in the Customizer be “single-use” (i.e. disabled after 1 instance has been added)?
- check if registered sidebar is active & has widget content
- How to edit widgets in WordPress
- dynamically add scripts to WP_Widget widget() method
- Extend WordPress 3.8 Site Activity Dashboard Widget to include more comments
- How to use is_active_widget?
- Get a list of all Widgets registered in WordPress admin widgets-area
- Modifying the default search widget
- Adding iframe Content to Sidebar Widget
- Enabling jquery when dragging available widget to sidebar area
- How Do I Add Custom CSS To Only Certain Widgets
- Get Widget Instance inside Widget
- Show post tags in a widget
- Author template, filter sidebar widgets by author?
- Prevent widgets removal
- Add the sidebar/widget editor to the post edit screen?
- WordPress 4.8: Using multiple WYSIWYG-Editors with media inside of Widgets how to?
- Does the number of widgets installed affect website performance?
- WP_Widget deprecated error in WordPress V4.3
- What is the quickest way to make a widget?
- Is There A Hook To Process The Content Of The Text Widget?
- Show Woocommerce minicart widget in checkout page sidebar? And, how to make this update secure by overriding widget?
- Get page IDs based on which template they are using?
- Changes in widget customizer not triggering ‘save and publish’
- Add filter to blogroll widget
- Widget Options Not saving
- Indexes of widgets instances starts with ‘2’ in ‘wp_options’ table
- Complex widget form UI – examples and best practices
- How do i manually place a widget code
- How to override the wordpress default widget markup
- Why is the $old_instance needed for the widget update function?
- Embed iframe or html page into dashboard widget
- Storing custom dashboard widget options in wordpress
- Get sidebar parameters (before_widget, before_title, etc.) from within a widget