You have a couple options as I see it:
There’s a the_widget() template tag that lets you control the before_widget and after_widget properties. However, it divorces the widget from the Widgets UI.
Alternately, you can try to accomplish whatever you’re trying to do via CSS. If you change your before_widget line to this:
'before_widget' => '<p id="%1$s" class="widget %2$s">',
you’ll get some classes and IDs that will make each widget style-able.
Related Posts:
- What is the quickest way to make a widget?
- Widget Options Not saving
- Complex widget form UI – examples and best practices
- How to update widget from widget() function?
- Is It Possible to Restore Accidentally Deleted Widgets?
- How do I create a widget that only allows a single instance?
- how to extend a WP_widget twice
- Defer Code in Widgets – Page Speed
- How does the default recent posts widget work with cache?
- Add new section to “Right Now” widget
- Creating a admin widget for /wp-admin/post.php?
- Why won’t my custom widget stay in the sidebar after a reload?
- How to save widget fields generated from an array?
- Remove image height/width attributes from Image Widget
- Extending WP_Widget throws error when Monster Widget used
- Add a specific css to a widget
- Save button is not working on custom widget
- Enabled checkbox by default in WordPress widgets
- Got a problem with a widget
- SELECT field options disappear when saving widget
- Problem with WP_Query loop and search term
- Custom tabs widget don’t work in google chrome, is blocked, do not change the tabs. Why?
- Extending Widgets – Exclude # of posts field from Recent Posts Widget
- Limit number of Widgets in Sidebars
- check if registered sidebar is active & has widget content
- $post>ID displays wrong post ID
- Programmatically edit the text of a widget
- How to add Custom Fields to Settings in Widget Options for all Registered Widgets?
- link wordpress and stackoverflow
- Is there a way to allow only certain type of widgets in the sidebars?
- Shortcode in Text Widget not working
- Custom Widget Creating PHP Exception When Placed In Its Own PHP File
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- Conditional Display of Links in Widgets
- Trigger Submit Event when Widget is added to Sidebar
- Created Widget Not Showing up on Admin Panel
- Why wordpress popular post widget shows Undefined index?
- Schedule cron event from widget
- How to enable / use new video / audio / images widgets in WordPress 4.8?
- How do i export the HTML from text widgets?
- Latest/Recent posts widget title link
- the_widget() and widget’s ID
- Insert Widget option into mark-up with register_sidebar
- Widgets not expanding on wordpress 3.3 widget dashbord
- How to put Stack Exchange Flair as widget?
- Removing default theme widgets
- wp_register_sidebar_widget() disappered my Widgets submenu – what am I doing wrong?
- Display single widget
- get_option returns undesired blank instance of a widget
- escaping and sanitizing input for custom widget form fields
- Drafts widget for admin page
- Global $wpdb is not showing correct data with function call
- Text widget doesn’t save the content
- Post ID displayed instead of title [closed]
- Create an extra Widget Areas in WordPress TwentyTwelve
- How do I pass the id of my widget to javascript in the form function?
- Widget – link to page rather than absolute url
- How i can widget ID get after drag for wordpress with jquery?
- Programmatically add widgets to sidebars
- Validating widget’s configuration data on Admin page
- Turn off “This is the Primary Sidebar Widget Area” message
- Custom widget doesn’t save values from dropdown box
- Adding a WordPress Widget to a settings page
- How to change “Call To +1800090098” in TopStore pro theme [closed]
- Is there any tab widget plugin supporting third party widgets? [closed]
- Add footer widgets
- Widgets in WP 4.3 disappearing – How to fix?
- Making jQuery .change() event persistent after widget save
- Custom CSS for a particular text/html widget in WordPress
- Removing side bar widgets from GovPress theme
- Adding a single text input field to a custom Dashboard widget
- how to show only particular category post in archive widgets
- How to test if the widgetized area has any widgets?
- Saving widget gets an undefined variable
- Distinguish between different widgets of the same type
- How can I detemine the parameters needed by the_widget()?
- widgets in footer?
- Can you hide a widget based on its content?
- Array showing all values of loop instead of specific value to post
- How can I remove WordPress element IDs and Class names in the HTML?
- Widget not appearing in customizer
- Widget settings disappear after refresh
- How to display author meta in a sidebar widget
- Is it ok not to set widget in the main page of a one page WordPress Theme?
- Recent Posts Widget URL / Domain change
- Make a widget to my footer
- How to change text of a widget depend on condition?
- Default WordPress widgets always appear
- Add space to the end on a widget
- Options page for widget
- user definable sidebar per page
- List.js inside WordPress widget
- Show or hide custom menu widget in side bar conditionally
- Edit the Publish Widget Options
- Post Thumbnails on Sidebar Widgets
- Widget which displays thumbnails, but links to urls?
- Using Conditional Tags to restrict something to 1 user?
- Problem on register/login widgets
- Add fields to edit in custom widget
- getBlockVariations(…) is undefined in Widget and Template Part editors but not Post Editor