[wp-trac] [WordPress Trac] #35206: Allow theme authors to control white space between menu items
WordPress Trac
noreply at wordpress.org
Wed Dec 30 00:33:17 UTC 2015
#35206: Allow theme authors to control white space between menu items
------------------------------------------+------------------------------
Reporter: peterwilsoncc | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Resolution:
Keywords: needs-unit-tests needs-patch | Focuses: template
------------------------------------------+------------------------------
Comment (by peterwilsoncc):
Replying to [comment:4 obenland]:
> I do, not sure if you like it though.
You're good, I'm happy with pushback as it makes for a better WordPress
:).
This is what I'm aiming to do:
* have `wp_nav_menu` remain whitespace consistent when it falls back to
the page listing (they currently differ)
* have the menus and page listings consistent
* allow right aligned menus to be space free while displaying in menu
order. `float:right` removes the space but reverses the items. See 2014
menu in [attachment:35206.jpg] with the space highlighted.
* allow for center aligned menus without spaces between.
* maintain backward compatibility.
It's possible with filters (one for line breaks and one for indents) but
messy as filters would need to be added and removed when menus fall back
to page listings.
As a themer, the first item is the biggest hurdle. The same function can
output different whitespace.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35206#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list