Update for off canvas menu
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 27 Oct 2016 19:01:55 +0000 (15:01 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 27 Oct 2016 19:01:55 +0000 (15:01 -0400)
Remove the anchor and use span with color of white.

lib/menu-walker.php
style.css

index d68cd8a..ca51203 100644 (file)
@@ -62,7 +62,7 @@ class Glm_Theme_Off_Canvas_Walker extends Walker_Nav_Menu {
         }
 
         if ( $depth === 0  && $object->has_children ) {
-            $item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '<a href="#">$1</a>', $item_html );
+            $item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '<span style="color:white;">$1</span>', $item_html );
         }
 
         $output .= $item_html;
index ed35ed6..10064f7 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: MackinacBridgeAuthority
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for MackinacBridgeAuthority
-Version: 1.0.1
+Version: 1.0.2
 */