It’s the default behavior of a dynamic sidebar to output li tags around widgets. You can override that though in the sidebar declaration.
You would do that by passing the sidebar registration the following additional arguments:
register_sidebar(
array(
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => "</div>"
)
);
Related Posts:
- List all sidebar names?
- Conditionally enqueue a widget’s script/stylesheet in HEAD (only when present on page!)
- Plugin upgrading: Widget settings
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- How can I make my custom shortcode work in a Custom HTML Widget?
- Adding a widget programmatically
- Override dynamic_sidebar() in plugin?
- How to pass JavaScript variable to PHP in wordpress widget?
- Is dynamic forms/entries possible in Widget?
- How do I add a widget programmatically to a newly created site (WPMU) within a plugin?
- WordPress widget / plugin….fields not appearing in my widget
- Created Widget Not Showing up on Admin Panel
- How do I register a stylesheet inside a WordPress widget?
- Detect if a plugin was included in a certain page
- Flickr plugin that will display photos from multiple group pools? [closed]
- Way to hook into a sidebar call to replace it with a custom sidebar
- I need some direction on how to have a sidebar based on meta rather than page
- Multisite Widget/Content
- Passing $this->get_field_name() to javascript
- Can I use a form in a dashboard widget?
- Ajax gives 400 error
- Missing argument 3 for wp_register_sidebar_widget()
- Archive – same title for the first two posts
- Custom random quote widget breaks when used in multiple sidebars
- Ajax contact form widget plugin data not insert in database
- Displaying Custom Sidebar Without Modifying Theme’s Core File?
- WordPress Widget – Saving multidimensional arrays into $instance
- Best practice for including plugin output in a template without using shortcode?
- strange shortcode error: does shortcodes requires any dependency?
- WordPress Widget Not Saving Instance
- How to set the default value as the saved value once a form of widget is saved?
- My widget won’t update its values when save is clicked
- Widget content turns up before title
- How to add captcha to publish widget
- Listing all sidebars
- Table of contents (TOC) plugin is not showing header tag
- Widgets are not displaying in the admin panel
- The styles in the recent posts widgets plugin not working
- Using foreach loop for `$instance` of form and update array widget iteration
- One time call to external API in widget
- Co-author plus: list of posts by authors in the sidebar
- Widget outputs the value but doesn’t save anything inside the textarea
- WordPress Widget: Is it possible to make the form dynamic without updating?
- Plugin Works, but Widget Doesn’t
- Widget Script Loads at Bottom of Page
- Cannot access variables within a widget
- twitter widget loads properly in all themes except my own theme?
- Template from scratch: Sidebars not showing widget
- What method should I use for a sidebar widget that reads latest posts?
- Widget redirecting to home page
- WordPress plugin not eching popular posts
- What are the downsides of using bootstrap in plugin development?
- Can’t edit Contact Us form on front page
- What can I do to customize a widget provided with this plugin? from where have I to start?
- Is it possible to control content on different pages by checkboxing wich content is shown where on a wordpress theme page?
- What are the common security flaws I need to look for? [closed]
- Creating a user’s own folder on user registration
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- How To Add an Extra Field in All WordPress Available Widgets?
- Deleting images through upload folder, but not deleting from media library
- how to use ajax to display from database and load more in wordpress plugin
- Update Option Error: Notice: Undefined index
- Why this global array is returning NULL from a callback function
- Why my Plugin keeps deactivating automatically?
- Self deactivate plugins after an action occurs
- How to check if you are on widget.php page?
- How to get current post user id
- switched from query_posts to WP_query, not working now?
- Rotate Widgets or Content Blocks every x sec/min
- Install Plugin via Code
- How to output CMB2 select options from repeated groups select elements?
- Homemade plugin while using Themify Ultra
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- do_action() hook into load-(page)
- Getting wp.me shortlink for wordpress custom post type
- where is the main file in this plugin?
- Problem since update 3.5 [duplicate]
- How to disable a widget when dependent plugin is inactive?
- First plugin, problem with get_pages
- custom uploader in the admin area
- How do I add the same contact form to multiple wordpress sites and capture the response in one place or database?
- I receive taxonomy id
- Error with get_price (and others) in self-written plugin to show price
- Issue with wp_handle_upload
- How can replace this url
- WordPress Frontend Page using Plugin
- Missing files in enqueue actions causes WordPress to reload
- I can’t use WP_Query
- Adding/ Removing actions for plugins
- wp_verify_nonce fails always
- Custom Plugin: Point to `template_directory`
- Adding list of Indexes in wordpress document
- Plugin options not appearing on options page using tabbed navigation
- Plugin won’t activate, fatal error (widget class not found)
- map urls to plugins
- Embed php code in custom field of a plugin [closed]
- Suitable hook when creating, updating and deleting posts programmatically
- How to override plugin function in code snippets WordPress
- How can I gather forums posted by visitors from different sites in one place? [duplicate]
- plugin development code standard not matching for SQL query