From 18c2ea982e04e0741c9f7703c890c73db8c89e9e Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 28 Jan 2016 12:22:05 -0500 Subject: [PATCH] removed ul from off canvas menu --- js/app.js | 1 + lib/navigation.php | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/app.js b/js/app.js index 0be6ec2..586b673 100644 --- a/js/app.js +++ b/js/app.js @@ -201,4 +201,5 @@ $(document).ready(function () { $(this).removeClass("active") ; }); $("#menu-top-menu-1").children("li:nth-child(2)").children("a:nth-child(1)").addClass("offCanvasLinks"); + }); diff --git a/lib/navigation.php b/lib/navigation.php index 2308037..75095b5 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -32,9 +32,8 @@ if ( ! function_exists( 'glm_theme_top_bar' ) ) { */ if ( ! function_exists( 'glm_theme_mobile_off_canvas' ) ) { function glm_theme_mobile_off_canvas() { - echo '
'; - echo '
'; + return preg_replace( array( '%^]*>%', '%$%' ), '', $menu ); } } if ( ! function_exists( 'glm_topLinks_mobile_off_canvas' ) ) { -- 2.17.1