From 16768b39cfd9aa24815ad2ab7eddfe02157718a8 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Wed, 26 Oct 2016 17:38:59 +0000 Subject: [PATCH] Twenty Seventeen: Fix header height on sub-pages. Moves `setNavProps` so it's no longer only fired on load when the scroll down arrow is present. Props laurelfulford. Fixes #38496. git-svn-id: https://develop.svn.wordpress.org/trunk@38964 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyseventeen/assets/js/global.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentyseventeen/assets/js/global.js b/src/wp-content/themes/twentyseventeen/assets/js/global.js index 1f707b3384..af41bde05b 100644 --- a/src/wp-content/themes/twentyseventeen/assets/js/global.js +++ b/src/wp-content/themes/twentyseventeen/assets/js/global.js @@ -143,6 +143,8 @@ $( document ).ready( function() { // Let's fire some JavaScript! + setNavProps(); + if ( $menuScrollDown.length ) { /** @@ -162,7 +164,6 @@ } ); } ); - setNavProps(); adjustScrollClass(); }