Title: expanded widget code is inconsistent
Last modified: August 21, 2016

---

# expanded widget code is inconsistent

 *  [signcarver](https://wordpress.org/support/users/signcarver/)
 * (@signcarver)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/expanded-widget-code-is-inconsistent/)
 * I have identical code in 2 sites. I am stringing 9 widgets together.
 * Each block of code looks like this
    `<div class="widget-row">[widget_instance
   id="widget_sp_image-76" format="0"][widget_instance id="widget_sp_image-21" format
   ="0"][widget_instance id="widget_sp_image-22" format="0"][widget_instance id="
   widget_sp_image-23" format="0"][widget_instance id="widget_sp_image-24" format
   ="0"][widget_instance id="widget_sp_image-25" format="0"][widget_instance id="
   widget_sp_image-26" format="0"][widget_instance id="widget_sp_image-27" format
   ="0"][widget_instance id="widget_sp_image-28" format="0"]</div>`
 * One one site the code rendered uses `<ul>` and `<li>` tags (one `<li>`
    for each
   widget) – This one displays correctly
 * On the second site the code rendered uses `<a>` and `<div>` tags. (no
    `<ul>`
   and `<li>` tags – This one does not display correctly.
 * I have compared my local css and every thing else i can think of but i can’t 
   see anything that would cause this.
 * Any help would be greatly appreciated.
    Thanks, Steve
 * [https://wordpress.org/plugins/widget-instance/](https://wordpress.org/plugins/widget-instance/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Global](https://wordpress.org/support/users/global_1981/)
 * (@global_1981)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/expanded-widget-code-is-inconsistent/#post-4705318)
 * Hi signcarver,
 * The formatting for widgets is controlled by the register_sidebar function. Have
   a look for where that function is invoked in the theme files for your two different
   sites.
 * For more information see:
    [http://codex.wordpress.org/Function_Reference/register_sidebar](http://codex.wordpress.org/Function_Reference/register_sidebar)
 *  Plugin Author [Global](https://wordpress.org/support/users/global_1981/)
 * (@global_1981)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/expanded-widget-code-is-inconsistent/#post-4705319)
 * Closed as theme-related issue.
 *  Thread Starter [signcarver](https://wordpress.org/support/users/signcarver/)
 * (@signcarver)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/expanded-widget-code-is-inconsistent/#post-4705324)
 * Hi global
 * This is not a theme related issue. Both sites use the same theme.
 *  Plugin Author [Global](https://wordpress.org/support/users/global_1981/)
 * (@global_1981)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/expanded-widget-code-is-inconsistent/#post-4705327)
 * Ok sorry it could also be in another plugin, not just the theme.
 * I would recommend doing a search for:
    register_sidebar
 * CSS has nothing to do with how WordPress outputs widgets, so don’t worry about
   looking there.
 * The widget instance plugin does not handle any presentation; there is not a single
   ul, li, div or a tag written in the widget instance plugin. It only outputs what
   WordPress tells it to output.
 * So again I would be looking through the source code for register_sidebar, or 
   disabling all other plugins on both sites starting from scratch and then adding
   each plugin one at a time to see which plugin changes the output.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘expanded widget code is inconsistent’ is closed to new replies.

 * ![](https://ps.w.org/widget-instance/assets/icon-256x256.jpg?rev=1187239)
 * [Widget Instance](https://wordpress.org/plugins/widget-instance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-instance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-instance/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-instance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-instance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-instance/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Global](https://wordpress.org/support/users/global_1981/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/expanded-widget-code-is-inconsistent/#post-4705327)
 * Status: not resolved