Support » Plugin: Widget Instance » expanded widget code is inconsistent

  • signcarver

    (@signcarver)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Global

    (@global_1981)

    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

    Plugin Author Global

    (@global_1981)

    Closed as theme-related issue.

    Thread Starter signcarver

    (@signcarver)

    Hi global

    This is not a theme related issue. Both sites use the same theme.

    Plugin Author Global

    (@global_1981)

    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.