From: Laury GvR Date: Wed, 5 Jul 2017 13:04:25 +0000 (-0400) Subject: Styles and markup changes for titles, header, menus X-Git-Tag: v1.0.0^2~10 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=ebaaa59c93907c43df9b3a506e52557ad276db55;p=WP-Themes%2Fcharlevoixdesign2017.git 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. --- 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(); ?>