From 10195159a547e1a0a0978c1b6c11f015219a5668 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 29 Apr 2016 10:13:38 -0400 Subject: [PATCH] Update off canvas nav to replace Home with Shop So they can get to shop --- lib/navigation.php | 9 ++++++--- style.css | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/navigation.php b/lib/navigation.php index 89b3a62..d19bbf3 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -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 '
'; - wp_nav_menu(array( + $menu = '
'; + $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 '
'; + $menu .= '
'; + $menu = str_replace('Home', 'Shop', $menu); + echo $menu; } } diff --git a/style.css b/style.css index 2f7a8f7..2c3d781 100644 --- 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 */ -- 2.17.1