WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13920 closed defect (bug) (fixed)

Incorrect HTML with custom menu widget?

Reported by: jowo Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Menus Keywords:
Focuses: Cc:

Description

I created a custom menu widget with a title and added some items to the menu.

This it he HTML output I get:

<ul>
<h3>Information</h3><div class="menu-information-container"><ul id="menu-information-1" class="menu"><li id="menu-item-6" class="menu-item menu-item-type-post_type"><a href="http://www.mydomain.com/about-us/">About us</a></li>

<li id="menu-item-5" class="menu-item menu-item-type-post_type"><a href="http://www.mydomain.com/contact-us/">Contact us</a></li>
</ul></div>
</ul>

Which seems like a weird format. Isn't this better:

<h3>Information</h3>
<div class="menu-information-container">
<ul id="menu-information-1" class="menu">
<li id="menu-item-6" class="menu-item menu-item-type-post_type"><a href="http://www.mydomain.com/about-us/">About us</a></li>

<li id="menu-item-5" class="menu-item menu-item-type-post_type"><a href="http://www.mydomain.com/contact-us/">Contact us</a></li>
</ul>
</div>

Putting headings and DIV above UL and not using multiple UL inside the menu.

Change History (2)

comment:1 @jowo5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Nevermind it was the template designer who hardcoded a UL above dynamic_sidebar for some reason.

comment:2 @ocean905 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.