Updating the off canvas menu more.
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 1 Nov 2016 20:30:13 +0000 (16:30 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 1 Nov 2016 20:30:13 +0000 (16:30 -0400)
Giving the non anchor label more padding.

lib/menu-walker.php
style.css

index a2d91c4..4f5dfda 100644 (file)
@@ -67,7 +67,7 @@ class Glm_Theme_Off_Canvas_Walker extends Walker_Nav_Menu {
         }
 
         if ( $depth === 0  && $object->has_children ) {
-            $item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '<span style="color:white;">$1</span>', $item_html );
+            $item_html = preg_replace( '/<a[^>]*>(.*)<\/a>/iU', '<span style="color:white;padding: 0.7rem 1rem;float: left;">$1</span>', $item_html );
         }
 
         $output .= $item_html;
index d401d1a..5d3155d 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: Capstone
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for Capstone
-Version: 1.0.3
+Version: 1.0.4
 */