Title: Default before widget
Last modified: August 22, 2016

---

# Default before widget

 *  Resolved [Dejan](https://wordpress.org/support/users/dejan85/)
 * (@dejan85)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/default-before-widget/)
 * Hi,
 * Thanks for the awesome plugin.
 * By default “before_widget” is set to:
    `<li id="%1$s" class="widget %2$s">` unless
   otherwise set while registering the sidebar.
 * This is adding “widget widget_nav_menu” class for sidebar navigation.
 * Your plugin is setting before_widget class to empty.
    When I add sidebar navigation
   to my custom sidebar I’m losing the widget style and menu appears un-styled.
 * I know I can add before widget manually but is it possible to set that function
   to default WP class?
 * Thanks
 * [https://wordpress.org/plugins/custom-sidebars/](https://wordpress.org/plugins/custom-sidebars/)

Viewing 1 replies (of 1 total)

 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/default-before-widget/#post-5631958)
 * Hi [@dejan85](https://wordpress.org/support/users/dejan85/),
 * I hope you are well today and thank you for your question.
 * I have tested it on my test site using latest version of Custom Sidebars plugin
   and default WordPress theme Twenty Fifteen.
 * I found when using the “Custom Menu” widget the classes “widget widget_nav_menu”
   are added to the widget container properly.
 * I think this can be a theme related issue that you are using.
 * To confirm whether this is theme specific issue you can just try temporary using
   any default WordPress theme like Twenty Fifteen.
 * Could you please share me the page URL from your site where you are displaying
   the “Custom Menu” widget in the custom sidebar so that i can test it?
 * Kind Regards,
    Vinod Dalvi

Viewing 1 replies (of 1 total)

The topic ‘Default before widget’ is closed to new replies.

 * ![](https://ps.w.org/custom-sidebars/assets/icon-256x256.png?rev=1414065)
 * [Custom Sidebars - Dynamic Sidebar Classic Widget Area Manager](https://wordpress.org/plugins/custom-sidebars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-sidebars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-sidebars/reviews/)

## Tags

 * [before_widget](https://wordpress.org/support/topic-tag/before_widget/)
 * [class](https://wordpress.org/support/topic-tag/class/)

 * 1 reply
 * 2 participants
 * Last reply from: [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/default-before-widget/#post-5631958)
 * Status: resolved