Title: tag breaking wp-admin
Last modified: October 16, 2018

---

# tag breaking wp-admin

 *  Resolved [barrydollar](https://wordpress.org/support/users/barrydollar/)
 * (@barrydollar)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/tag-breaking-wp-admin/)
 * ON our home page, logged-in and trying to edit, we are having problems with the
   editor not functioning properly. I reached out to our theme provider and their
   response was that Custom Sidebar plug-in is breaking things. Here is their explanation
   and suggestion that the fix needs to be made by the plug-in author:
 * Checking the page I noticed there are random < a > (link) tags in the admin page
   where they shouldn’t be; that’s breaking the DOM structure of the page (please
   see the attached screenshot) and generating the error message that you see. It
   took a while however managed to find out what piece of HTML was causing this:
 * ///**To change the sidebar for Front Page**
    - Go to the [Widgets page](https://gabaptist.staging.wpengine.com/wp-admin/widgets.php)
    - Click on "Sidebar Location"
    - Open the "Archive-Types" tab
    - Choose "Front Page"
 * </p>[](https://i0.wp.com/gabaptist.staging.wpengine.com/wp-content/plugins/custom-sidebars/assets/img/metabox/frontpage-info.png?ssl=1)
 * . That belongs to the Custom Sidebars plugin and when I deactivated that plugin
   the issue was gone. Please contact the plugin’s support and ask them to fix the
   broken HTML code.
    -  This topic was modified 7 years, 8 months ago by [barrydollar](https://wordpress.org/support/users/barrydollar/).
    -  This topic was modified 7 years, 8 months ago by [barrydollar](https://wordpress.org/support/users/barrydollar/).
    -  This topic was modified 7 years, 8 months ago by [barrydollar](https://wordpress.org/support/users/barrydollar/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftag-breaking-wp-admin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [barrydollar](https://wordpress.org/support/users/barrydollar/)
 * (@barrydollar)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/tag-breaking-wp-admin/#post-10785169)
 * Sorry, I do not know how to add the code above without it rendering. Hope this
   still makes sense.
 *  [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/tag-breaking-wp-admin/#post-10786715)
 * Hello [@barrydollar](https://wordpress.org/support/users/barrydollar/)
 * Hope all is well!
 * Please let us know, is the last `<a></a>` is causing an issue? I couldn’t find
   from my end a missing/orphan tag.
 *     ```
       <div class="inside">
   
       <p><strong>To change the sidebar for Front Page</strong></p>
   
       <ul><li>Go to the <a href="http://link">Widgets page</a></li><li>Click on "Sidebar Location"</li><li>Open the "Archive-Types" tab</li><li>Choose "Front Page"</li></ul>
   
       <p></p>
   
       <a href="imagelink" target="_blank"><img src="imagelink" style="width:100%"></a>
   
       <a></a>
   
       </div>
       ```
   
 * Please share here a code one more time, that was shared with you. To wrap it,
   please click on the code button as shown in this screenshot:
    [https://monosnap.com/file/PxbVM0CFFT8byi764HtkTpENLRtDhi](https://monosnap.com/file/PxbVM0CFFT8byi764HtkTpENLRtDhi)
 * Let us know which theme you’re using on your site?
 * Please advise,
 * Cheers,
    Nastia
    -  This reply was modified 7 years, 8 months ago by [Imran - WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/).
    -  This reply was modified 7 years, 8 months ago by [Imran - WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/).
 *  Thread Starter [barrydollar](https://wordpress.org/support/users/barrydollar/)
 * (@barrydollar)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/tag-breaking-wp-admin/#post-10793540)
 * We are using Themify.me Ultra theme. Themify’s support found the your code with
   the open ‘a’ tag.here it is…
 *     ```
       <p><strong>To change the sidebar for Front Page</strong><ul><li>Go to the <a href="https://gabaptist.staging.wpengine.com/wp-admin/widgets.php">Widgets page</a></li><li>Click on &quot;Sidebar Location&quot;</li><li>Open the &quot;Archive-Types&quot; tab</li><li>Choose &quot;Front Page&quot;</li></ul></p><a href="https://gabaptist.staging.wpengine.com/wp-content/plugins/custom-sidebars/assets/img/metabox/frontpage-info.png?version=3.2.1" target="_blank"><img src="https://gabaptist.staging.wpengine.com/wp-content/plugins/custom-sidebars/assets/img/metabox/frontpage-info.png?version=3.2.1" style="width:100%" /><a></div>
       ```
   
 *  [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/tag-breaking-wp-admin/#post-10801798)
 * Hello [@barrydollar](https://wordpress.org/support/users/barrydollar/)
 * Hope all is well!
 * In a code you’ve shared, I can confirm there is a missing `</a>` tag. Although
   I can’t reproduce this structure on my end, on a vanilla WordPress install the
   HTML structure is correct. Would you please try to re-install the plugin and 
   see if all is well?
 * If the issue still there, please let us know if the Editor is not working, when
   all the plugins, besides Custom Sidebars, are deactivated? If all is well, start
   activating one plugin at a time, every time testing if the Editor is working.
 * Let us know how it went!
 * Kind regards,
    Nastia
 *  Thread Starter [barrydollar](https://wordpress.org/support/users/barrydollar/)
 * (@barrydollar)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/tag-breaking-wp-admin/#post-10807050)
 * This is still an issue, and another person has identified the exact same problem:
   [https://wordpress.org/support/topic/unclosed-in-custom_sidebars_replace_not_allowed-function/](https://wordpress.org/support/topic/unclosed-in-custom_sidebars_replace_not_allowed-function/)
 * I have already gone through the process of turning off all plug-ins and reactivating
   one by one. The problem is with the custom sidebar plug-in.
 *  Thread Starter [barrydollar](https://wordpress.org/support/users/barrydollar/)
 * (@barrydollar)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/tag-breaking-wp-admin/#post-10808675)
 * It looks like my theme support guys have identified the issue with your plug-
   in. Read their last response:
 * “I’m not sure what they mean by “not able to duplicate the issue” as there’s 
   nothing to duplicate: this is invalid HTML markup. I’ve attached an screenshot
   of where this is in their plugin’s code, you can see the path to the PHP file,
   and I’ve highlighted the line with the invalid HTML markup as well.
 * The same screenshot can also explain point #2 you made: “Whatever page is set
   as the home page cannot be edited in the backend. Same page, if not set as the
   home page, can be edited”. Notice the if ( $is_front ) line and others below 
   it, that invalid markup is added if the page meets certain conditions.
 * See the screenshot of the invalid markuu: [https://themify.me/wp-content/uploads/forum/2018/10/1-7.png](https://themify.me/wp-content/uploads/forum/2018/10/1-7.png)
 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/tag-breaking-wp-admin/#post-10813876)
 * Hi [@barrydollar](https://wordpress.org/support/users/barrydollar/),
 * Sorry for the confusion, we have passed the issue over to our developers and 
   it will be fixed in the next release, we’re just not able to replicate theme 
   issue on our installation which we usually like to have in order to test the 
   fix before pushing it live.
    But nevertheless, the typo in code is indeed there
   and will be fixed with next version.
 * Cheers,
    Predrag
 *  [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * (@wpmudev-support1)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/tag-breaking-wp-admin/#post-10814109)
 * Just an update that we have released new version to address this issue so it 
   should be all good now 🙂
 * Cheers,
    Predrag

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

The topic ‘tag breaking wp-admin’ 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/)

 * 8 replies
 * 3 participants
 * Last reply from: [Predrag – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support1/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/tag-breaking-wp-admin/#post-10814109)
 * Status: resolved