Merge pull request #172 from stef-k/vertical-page-js-fix

fixes #171
This commit is contained in:
stef kariotidis 2016-12-07 13:55:34 +02:00 committed by GitHub
commit 06ad88ae19
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
$( document ).ready(function() { $( document ).ready(function() {
// smoothly scroll to an ID // smoothly scroll to an ID
$( 'a[href*="#"]:not([href="#"])' ).click( function ( e ) { $( '#main-menu li a' ).click( function ( e ) {
var target; var target;
// if not on root URL // if not on root URL
if ( currentPage === blogPage || vars.isSingle ) { if ( currentPage === blogPage || vars.isSingle ) {