} );
} );
- // Arrange footer widgets vertically.
- if ( $.isFunction( $.fn.masonry ) ) {
- $( '#footer-sidebar' ).masonry( {
- itemSelector: '.widget',
- columnWidth: function( containerWidth ) {
- return containerWidth / 4;
- },
- gutterWidth: 0,
- isResizable: true,
- isRTL: $( 'body' ).is( '.rtl' )
- } );
- }
-
- // Initialize Featured Content slider.
_window.load( function() {
+ // Arrange footer widgets vertically.
+ if ( $.isFunction( $.fn.masonry ) ) {
+ $( '#footer-sidebar' ).masonry( {
+ itemSelector: '.widget',
+ columnWidth: function( containerWidth ) {
+ return containerWidth / 4;
+ },
+ gutterWidth: 0,
+ isResizable: true,
+ isRTL: $( 'body' ).is( '.rtl' )
+ } );
+ }
+
+ // Initialize Featured Content slider.
if ( body.is( '.slider' ) ) {
$( '.featured-content' ).featuredslider( {
selector: '.featured-content-inner > article',