Title: Wrong widget html code
Last modified: July 19, 2017

---

# Wrong widget html code

 *  [pcarvalho](https://wordpress.org/support/users/pcarvalho/)
 * (@pcarvalho)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/wrong-widget-html-code/)
 * Hi, a client of mine wanted to use this plugin so I had to fix it.
 * Your widget html code is badly written.
 * There’s a div on line 166 that should be outside of the if ( $options[‘esw_checkbox_logo’]
   == 1 ).
 * It breaks any sidebar.
 * Also, please research on how to properly encapsulate the widget. You’re supposed
   to read $args and wrap your code with before_widget and after_widget.
 * thanks,
    p.
    -  This topic was modified 8 years, 9 months ago by [pcarvalho](https://wordpress.org/support/users/pcarvalho/).

The topic ‘Wrong widget html code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/experitour-search-widget.svg)
 * [experitour.com search widget](https://wordpress.org/plugins/experitour-search-widget/)
 * [Support Threads](https://wordpress.org/support/plugin/experitour-search-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/experitour-search-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/experitour-search-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/experitour-search-widget/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [pcarvalho](https://wordpress.org/support/users/pcarvalho/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/wrong-widget-html-code/)
 * Status: not resolved