Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/wp-content/themes/twentyseventeen/assets/js/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,17 @@
setTimeout( adjustHeaderHeight, 1000 );
});

// Recheck blockquote position when the Blog Sidebar changes in the Customizer.
$( function() {
if ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh ) {
wp.customize.selectiveRefresh.bind( 'sidebar-updated', function( sidebarPartial ) {
if ( 'sidebar-1' === sidebarPartial.sidebarId ) {
belowEntryMetaClass( 'blockquote.alignleft, blockquote.alignright' );
}
});
}
});

// Add header video class after the video is loaded.
$( document ).on( 'wp-custom-header-video-loaded', function() {
$body.addClass( 'has-header-video' );
Expand Down
Loading