Opened 4 years ago

Last modified 3 years ago

#10968 new enhancement

Add container_element arg to wp_page_menu()

Reported by: stebbiv Owned by:
Priority: normal Milestone: Future Release
Component: Template Version:
Severity: normal Keywords: has-patch
Cc: stebbiv@…

Description

I have added a new argument to the wp_page_menu template tag so it replaces the container div with another HTML element.

This is useful when migrating to HTML 5 and you want to use the <nav> element.

Attachments (1)

post-template.php.diff (1.5 KB) - added by stebbiv 4 years ago.
A simplified diff. Now container_element simply defaults to 'div'

Download all attachments as: .zip

Change History (7)

You forgot to replace the </div>

  • Summary changed from A new argument to replace the container div in wp_page_menu to Add container_element arg to wp_page_menu()

I have updated the diff file.

  • Cc stebbiv@… added

stebbiv4 years ago

A simplified diff. Now container_element simply defaults to 'div'

  • Keywords has-patch added
  • Milestone changed from Unassigned to 2.9

comment:6   ryan3 years ago

  • Milestone changed from 2.9 to Future Release
Note: See TracTickets for help on using tickets.