Revision 271 is a pre-publication revision. (Viewing current revision instead.)

Adding class or id to wp_nav_menu using php

  [php]function add_nav_class($output) { $output= preg_replace('/<a/', '<a', $output, -1); return $output; } add_filter('wp_nav_menu', 'add_nav_class');[/php]

Revisions

  • October 2, 2012 @ 13:06:01 [Current Revision] by PeterLugg
  • October 2, 2012 @ 13:05:48 by PeterLugg

Revision Differences

There are no differences between the October 2, 2012 @ 13:05:48 revision and the current revision. (Maybe only post meta information was changed.)

Tags:

No comments yet.

Leave a Reply