From cb3b9c2fb8396f4d7b8429c65f4aa17ff61dc856 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Wed, 30 May 2018 13:51:44 -0400 Subject: [PATCH] removing br tags from mobile menu, linking instagram contact us --- footer.php | 2 +- functions.php | 2 +- header.php | 2 +- js/custom.js | 27 +++++++++++++++++++++++---- parts/glm-client-info.php | 2 +- style.css | 8 +++++++- 6 files changed, 34 insertions(+), 9 deletions(-) diff --git a/footer.php b/footer.php index f32348f..938ce5c 100644 --- a/footer.php +++ b/footer.php @@ -23,7 +23,7 @@ diff --git a/functions.php b/functions.php index 644c1f8..cc491ca 100644 --- a/functions.php +++ b/functions.php @@ -174,7 +174,7 @@ function accesspress_parallax_scripts() { wp_enqueue_style( 'nivo-lightbox', get_template_directory_uri() . '/css/nivo-lightbox.css' ); wp_enqueue_style( 'animate', get_template_directory_uri() . '/css/animate.css' ); wp_enqueue_style( 'slick', get_template_directory_uri() . '/css/slick.css' ); - wp_enqueue_style('accesspress-parallax-woocommerce',get_template_directory_uri().'/woocommerce/ap-parallax-style.css'); + wp_enqueue_style('accesspress-parallax-woocommerce',get_template_directory_uri().'/woocommerce/ap-parallax-style.css'); wp_enqueue_style( 'accesspress-parallax-style', get_stylesheet_uri() ); wp_enqueue_style( 'accesspress-parallax-responsive', get_template_directory_uri() . '/css/responsive.css' ); diff --git a/header.php b/header.php index 1c298b8..860b783 100644 --- a/header.php +++ b/header.php @@ -37,7 +37,7 @@
Online Reservations - +
diff --git a/js/custom.js b/js/custom.js index f86f592..f6c0406 100644 --- a/js/custom.js +++ b/js/custom.js @@ -153,8 +153,27 @@ jQuery(document).ready(function($){ $('.portfolio-listing').first().children('.portfolio-list').on("click", function(e){ e.preventDefault(); }); - let portfolio_bottom = $('.portfolio-listing').last(); - portfolio_bottom.children('a').first().attr('href', 'https://clients.innroad.com/kingsail/property.aspx').attr('target', '_blank'); - portfolio_bottom.children('a:eq(1)').attr('href', window.pages.area); - portfolio_bottom.children('a').last().attr('href', window.pages.amenities); + + $("li.menu-item").each(function(){ + let preserved = $(this).children('a').html(); + let stripped = $(this).children("a").text(); + $(this).attr("data-stripped", stripped); + $(this).attr("data-preserved", preserved) + }); + if( $(window).width() < 1001){ + $("li.menu-item").each(function(){ + $(this).children('a').text( $(this).data("stripped") ); + }); + }; + $(window).on('resize', function(){ + if( $(window).width() < 1001){ + $("li.menu-item").each(function(){ + $(this).children('a').text($(this).children("a").text() ); + }) + }else{ + $("li.menu-item").each(function(){ + $(this).children('a').html( $(this).data("preserved") ); + }) + } + }); }); \ No newline at end of file diff --git a/parts/glm-client-info.php b/parts/glm-client-info.php index f813233..0b2ecbd 100644 --- a/parts/glm-client-info.php +++ b/parts/glm-client-info.php @@ -20,7 +20,7 @@ - Contact Us + Contact Us
.menu{ position: relative; -- 2.17.1