Ticket #27220: 27220.2.diff
| File 27220.2.diff, 1.3 KB (added by , 12 years ago) |
|---|
-
wp-content/themes/twentyfourteen/functions.php
256 256 ) ); 257 257 } 258 258 259 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20140 319', true );259 wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20140616', true ); 260 260 } 261 261 add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' ); 262 262 -
wp-content/themes/twentyfourteen/js/functions.js
94 94 mastheadOffset = $( '#masthead' ).offset().top - toolbarOffset; 95 95 96 96 _window.on( 'scroll.twentyfourteen', function() { 97 if ( ( window.scrollY > mastheadOffset ) && ( mastheadHeight < 49 )) {97 if ( _window.scrollTop() > mastheadOffset && mastheadHeight < 49 ) { 98 98 body.addClass( 'masthead-fixed' ); 99 99 } else { 100 100 body.removeClass( 'masthead-fixed' );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)