[wp-trac] [WordPress Trac] #16763: nav-menu-template.php Does Not Add $class_names to Anchor Tags, Preventing Custom Theming
WordPress Trac
wp-trac at lists.automattic.com
Sat Mar 5 16:17:25 UTC 2011
#16763: nav-menu-template.php Does Not Add $class_names to Anchor Tags, Preventing
Custom Theming
-----------------------------+-----------------------------
Reporter: obiwanmikenolte | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version: 3.1
Severity: minor | Keywords:
-----------------------------+-----------------------------
The $item_output portion of wp-includes/nav-menu-template.php that defines
what the a tag will contain doesn't include a class attribute, whereas the
ul tag does. This prevents customized theming (e.g. colors, images
before/after, etc.) of the menu links. This can be modified by appending
$class_names to $item_output's <a line, i.e.
{{{
$item_output .= '<a'. $attributes .'>';
}}}
becomes
{{{
$item_output .= '<a'. $attributes . $class_names .'>';
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16763>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list