From: Laury GvR Date: Wed, 12 Jul 2017 12:52:31 +0000 (-0400) Subject: Setting height of header images to 500px X-Git-Tag: v1.0.0^2~56 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=31defdf3ff3aea1acfffded54f285fa3835abf2d;p=WP-Themes%2Ftruenorthgolf.git Setting height of header images to 500px --- diff --git a/css/app.css b/css/app.css index c58acbd..aafee86 100644 --- a/css/app.css +++ b/css/app.css @@ -7141,15 +7141,15 @@ main #mid { margin-bottom: 15px; } } #head-img { - min-height: 409px; + min-height: 500px; margin: -185px auto 0; } @media only screen and (max-width: 40em) { #head-img { margin-top: -140px; min-height: 170px; } } #head-img .featured-image { - min-height: 409px; - margin-top: -295px; } + min-height: 500px; + margin-top: -210px; } @media only screen and (max-width: 40em) { #head-img .featured-image { margin-top: -140px; diff --git a/js/app.js b/js/app.js index 7dad80e..190898b 100644 --- a/js/app.js +++ b/js/app.js @@ -21,4 +21,28 @@ $(document).ready(function () { $('.title.back.js-generated').each(function() { $(this).hide(); }); + + // cache everything once + var page = $("body"); + + var topbar_menu_items = page.find(".top-bar-section").children("ul#menu-main-navigation-left").children("li"); + var offcanvas_menu_items = page.find(".left-off-canvas-menu").children("ul.left-off-canvas-list").children('li'); + + // disable the links for top nav items that have subpages + topbar_menu_items.each( function () { + if ( $(this).hasClass("menu-item-has-children") ){ + $(this).children("a").on('click', function(e){ + e.preventDefault(); + }); + } + }); + + // disable the links for off canvas nav items that have subpages + offcanvas_menu_items.each( function () { + if ( $(this).hasClass("menu-item-has-children") ){ + $(this).children("a").on('click', function(e){ + e.preventDefault(); + }); + } + }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index db8b503..5b3d7e3 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -12,4 +12,28 @@ $(document).ready(function () { $('.title.back.js-generated').each(function() { $(this).hide(); }); + + // cache everything once + var page = $("body"); + + var topbar_menu_items = page.find(".top-bar-section").children("ul#menu-main-navigation-left").children("li"); + var offcanvas_menu_items = page.find(".left-off-canvas-menu").children("ul.left-off-canvas-list").children('li'); + + // disable the links for top nav items that have subpages + topbar_menu_items.each( function () { + if ( $(this).hasClass("menu-item-has-children") ){ + $(this).children("a").on('click', function(e){ + e.preventDefault(); + }); + } + }); + + // disable the links for off canvas nav items that have subpages + offcanvas_menu_items.each( function () { + if ( $(this).hasClass("menu-item-has-children") ){ + $(this).children("a").on('click', function(e){ + e.preventDefault(); + }); + } + }); }); diff --git a/scss/_main.scss b/scss/_main.scss index 0944f22..46f9d7c 100644 --- a/scss/_main.scss +++ b/scss/_main.scss @@ -217,15 +217,15 @@ main { } } #head-img { - min-height: 409px; + min-height: 500px; margin: -185px auto 0; @media #{$small-only} { margin-top: -140px; min-height: 170px; } .featured-image { - min-height: 409px; - margin-top: -295px; + min-height: 500px; + margin-top: -210px; @media #{$small-only} { margin-top: -140px; min-height: 170px;