projects
/
WP-Themes
/
harborpointassociation2018.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb02fb6
)
removing br tags from oc menu nav items
author
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 7 Jun 2018 14:48:06 +0000
(10:48 -0400)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Thu, 7 Jun 2018 14:48:06 +0000
(10:48 -0400)
lib/menu-walker.php
patch
|
blob
|
history
diff --git
a/lib/menu-walker.php
b/lib/menu-walker.php
index
5d530ba
..
6141090
100644
(file)
--- a/
lib/menu-walker.php
+++ b/
lib/menu-walker.php
@@
-65,7
+65,7
@@
class Glm_Theme_Off_Canvas_Walker extends Walker_Nav_Menu {
if ( in_array( 'label', $classes ) ) {
$item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '<label>$1</label>', $item_html );
}
-
+ $item_html = preg_replace("/<br>/", " ", $item_html);
$output .= $item_html;
}