Update off canvas nav to replace Home with Shop
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 29 Apr 2016 14:13:38 +0000 (10:13 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 29 Apr 2016 14:13:38 +0000 (10:13 -0400)
So they can get to shop

lib/navigation.php
style.css

index 89b3a62..d19bbf3 100644 (file)
@@ -31,8 +31,9 @@ if ( ! function_exists( 'glm_theme_top_bar' ) ) {
  */
 if ( ! function_exists( 'glm_theme_mobile_off_canvas' ) ) {
     function glm_theme_mobile_off_canvas() {
-        echo '<div class="left-off-canvas-list">';
-        wp_nav_menu(array(
+        $menu = '<div class="left-off-canvas-list">';
+        $menu .= wp_nav_menu(array(
+            'echo' => false,
             'container' => false,                           // remove nav container
             'container_class' => '',                        // class of container
             'menu' => '',                                   // menu name
@@ -46,7 +47,9 @@ if ( ! function_exists( 'glm_theme_mobile_off_canvas' ) ) {
             'fallback_cb' => false,                         // fallback function (see below)
             'walker' => new Glm_Theme_Off_Canvas_Walker()
         ));
-        echo '</div>';
+        $menu .= '</div>';
+        $menu = str_replace('Home', 'Shop', $menu);
+        echo $menu;
     }
 }
 
index 2f7a8f7..2c3d781 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: jollylama
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for jollylama
-Version: 1.0.3
+Version: 1.0.4
 */