{"id":6312445,"date":"2015-07-09T17:19:00","date_gmt":"2015-07-09T17:19:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-outputting-broken-code\/"},"modified":"2016-08-30T15:18:49","modified_gmt":"2016-08-30T15:18:49","slug":"plugin-outputting-broken-code","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-outputting-broken-code\/","title":{"rendered":"plugin outputting broken code?"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I just installed your plugin and created a sidebar widget. I think it may be outputting broken html, which is resulting in all other widgets which are lower in my sidebar getting displayed outside of the sidebar. Here&#8217;s the code that&#8217;s being output; as you can see, there is a superfluous div end-tag in your widget. (I fixed line throws and indentation to make the code easier to read, but otherwise it is exactly as it was output.) That div end-tag is &#8220;ending&#8221; the sidebar prematurely and throwing everything off.<\/p>\n<pre><code>&lt;div id=&quot;primary&quot; class=&quot;aside main-aside&quot;&gt;\n\t&lt;ul class=&quot;xoxo&quot;&gt;\n\t\t&lt;li id=&quot;sb-easy-image-widget-2&quot; class=&quot;widget-1 widget-first widget-odd sidebar-image-widget widgetcontainer widget-sb-easy-image&quot;&gt;\n\t\t\t&lt;style type=&quot;text\/css&quot;&gt;# .gallery-caption { display: none !important; }&lt;\/style&gt;\n\t\t\t&lt;dl class=&#039;gallery-item&#039;&gt;\n\t\t\t\t&lt;dt class=&#039;gallery-icon landscape&#039;&gt;\n\t\t\t\t\t&lt;img width=&quot;285&quot; height=&quot;222&quot; src=&quot;http:\/\/ourdomain.org\/wp-content\/uploads\/2015\/07\/sb-river.jpg&quot; class=&quot;attachment-full&quot; alt=&quot;sb-river&quot; \/&gt;\n\t\t\t\t&lt;\/dt&gt;\n\t\t\t&lt;\/dl&gt;&lt;br style=&quot;clear: both&quot; \/&gt;\n\t\t\t&lt;\/div&gt;\n\t\t&lt;\/li&gt;\n\t\t&lt;li id=&quot;black-studio-tinymce-2&quot; class=&quot;widget-2 widget-last widget-even sponsors-widget widgetcontainer widget_black_studio_tinymce&quot;&gt;\n\t\t\t&lt;div class=&quot;textwidget&quot;&gt;\n\t\t\t\t&lt;h4&gt;Sponsors&lt;\/h4&gt;\n\t\t\t\t&lt;p&gt;Learn about our&lt;br \/&gt;&lt;a href=&quot;\/sponsorship-opportunities\/&quot;&gt;sponsorship opportunities&lt;\/a&gt;.&lt;\/p&gt;\n\t\t\t&lt;\/div&gt;\n\t\t&lt;\/li&gt;\n\t&lt;\/ul&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>https:\/\/wordpress.org\/plugins\/easy-image-display\/<\/p>\n","protected":false},"template":"","class_list":["post-6312445","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6312445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6312445\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6312445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}