Timeline for start_lvl Ignored in Custom walker_nav_menu
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 17, 2012 at 9:05 | comment | added | fenfe1 |
Hi yeah I fixed the .= bit this is now the complete class (I removed the start_lvl() and end_lvl() functions to see if they made a difference) - pastebin.com/zfcBxHd8
|
|
Nov 16, 2012 at 14:22 | comment | added | s_ha_dum |
The <div> and <p> shouldn't break the Walker but might result in invalid markup. You have $output = and not $output .= in your start_lvl . That could be causing trouble. Is that the complete Walker you posted?
|
|
Nov 16, 2012 at 14:18 | history | edited | s_ha_dum | CC BY-SA 3.0 |
added 1 characters in body
|
Nov 16, 2012 at 8:18 | comment | added | fenfe1 |
I've tried using <div> instead of <p> just to see if I can get those functions to do anything but so far no joy :(
|
|
Nov 16, 2012 at 8:17 | comment | added | fenfe1 | class BB_Nav_Footer_Walker extends Walker_Nav_Menu { function start_lvl(&$output, $depth = 0, $args = array()) { $output = "\n<p class=\"sub-menu\">\n"; } function end_lvl(&$output, $depth = 0, $args = array()) { $output .= "\n</p>\n"; } } | |
Nov 16, 2012 at 8:16 | comment | added | fenfe1 | Hi, yeah i've done that below is the full class, | |
Nov 15, 2012 at 23:35 | history | edited | s_ha_dum | CC BY-SA 3.0 |
added 134 characters in body
|
Nov 15, 2012 at 23:29 | history | answered | s_ha_dum | CC BY-SA 3.0 |