From: Laury GvR Date: Wed, 12 Jul 2017 14:17:51 +0000 (-0400) Subject: Added code to make top nav items unclickable. One of the items may need this X-Git-Tag: v1.0.0^2~49 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=3baf5a0699c36c656cc09086f406f731d3fa3b9e;p=WP-Themes%2Ftruenorthgolf.git Added code to make top nav items unclickable. One of the items may need this --- diff --git a/css/app.css b/css/app.css index c21154f..00b30c4 100644 --- a/css/app.css +++ b/css/app.css @@ -6943,9 +6943,11 @@ video { background: transparent !important; } .top-bar-section ul li.active:not(.has-form) a:not(.button) { background: transparent !important; } - .top-bar-section > div > ul > li a { + .top-bar-section > div > ul > li > a { font-size: 12px; text-transform: uppercase; } + .top-bar-section > div > ul > li > a:hover { + cursor: default; } .top-bar-section > div > ul > li:hover { border-width: 0 0 3px; border-color: #b32024; diff --git a/js/app.js b/js/app.js index 190898b..c2002cd 100644 --- a/js/app.js +++ b/js/app.js @@ -22,27 +22,29 @@ $(document).ready(function () { $(this).hide(); }); - // cache everything once - var page = $("body"); + // The code below is useful if we want the top-level items to no longer be clickable - 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'); + // cache everything once +// var page = $("body"); +// +// 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(); - }); - } - }); +// $('.top-bar-section > div > ul > li').each( function () { +// console.log("test"); +// 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(); - }); - } - }); +// $('.left-off-canvas-menu > ul > li').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 5b3d7e3..faece45 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -13,27 +13,29 @@ $(document).ready(function () { $(this).hide(); }); - // cache everything once - var page = $("body"); + // The code below is useful if we want the top-level items to no longer be clickable - 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'); + // cache everything once +// var page = $("body"); +// +// 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(); - }); - } - }); +// $('.top-bar-section > div > ul > li').each( function () { +// console.log("test"); +// 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(); - }); - } - }); +// $('.left-off-canvas-menu > ul > li').each( function () { +// if ( $(this).hasClass("menu-item-has-children") ){ +// $(this).children("a").on('click', function(e){ +// e.preventDefault(); +// }); +// } +// }); }); diff --git a/page.php b/page.php index 9a33a87..c602e73 100644 --- a/page.php +++ b/page.php @@ -4,7 +4,7 @@ -
+
diff --git a/scss/_topbar.scss b/scss/_topbar.scss index 7e0406b..5827adc 100644 --- a/scss/_topbar.scss +++ b/scss/_topbar.scss @@ -133,10 +133,13 @@ } > div > ul { > li { - a { + > a { font-size: 12px; text-transform: uppercase; } + > a:hover { + cursor: default; + } } > li:hover { border-width: 0 0 3px;