From ebaaa59c93907c43df9b3a506e52557ad276db55 Mon Sep 17 00:00:00 2001 From: Laury GvR Date: Wed, 5 Jul 2017 09:04:25 -0400 Subject: [PATCH] Styles and markup changes for titles, header, menus Logo size increased, header height increased, top-nav now bottom- aligned, titles removed from page sections, parent page titles moved to the left of the sub-menus, hover effect changed for menus. --- assets/js/navigation.js | 12 ++++++++++ front-page.php | 18 +++++++++------ header.php | 4 ++-- style.css | 51 ++++++++++++++++++++++++++++++----------- 4 files changed, 63 insertions(+), 22 deletions(-) diff --git a/assets/js/navigation.js b/assets/js/navigation.js index 74d026b..a2cdc44 100755 --- a/assets/js/navigation.js +++ b/assets/js/navigation.js @@ -135,6 +135,18 @@ }); + $(".static-home-link").click(function() { + + var scrollTarget = $('.home'); +// console.log(scrollTarget); + if (scrollTarget) { + $('body, html').animate({ + scrollTop: scrollTarget.offset().top-100 + }, 300); + } + + }); + function setActiveNavItem() { // $(".twentyseventeen-panel").each(function() { // if(myTopPosition > $(this).offset().top && ( $(this).offset().top + $(this).outerHeight() > myTopPosition) ) { diff --git a/front-page.php b/front-page.php index 85539d8..03d040d 100755 --- a/front-page.php +++ b/front-page.php @@ -44,7 +44,7 @@ get_header(); ?> 'post_parent' => '0', 'post_status' => 'publish', 'suppress_filters' => false, - 'post_name__in' => ['services','portfolio','contact-us'], + 'post_name__in' => ['services','portfolio','contact-us'], ); $all_parents = get_posts( $parent_args ); @@ -55,7 +55,7 @@ get_header(); ?>