Title: Video Post alignment in Magazine layout
Last modified: May 27, 2020

---

# Video Post alignment in Magazine layout

 *  [whoisuncle](https://wordpress.org/support/users/whoisuncle/)
 * (@whoisuncle)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/video-post-alignment-in-magazine-layout/)
 * The ‘top’ property of each article block was calculated before the responsive
   video iframe height was adjusted. After the video iframe was adjusted, the height
   of the article block was shortened that leave a large gap between the article
   block underneath.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvideo-post-alignment-in-magazine-layout%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [whoisuncle](https://wordpress.org/support/users/whoisuncle/)
 * (@whoisuncle)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/video-post-alignment-in-magazine-layout/#post-12982902)
 * Found the fix.
    under: wp-content/themes/parabola/js/frontend.js
 * Load FitVids before Masonry
 * before:
 *     ```
       	/* Second Masonry, in case elements expand size due to dynamic content */
       	if (parabola_settings.masonry==1) {
       		jQuery('body.magazine-layout .content-masonry').masonry({
       			itemSelector: 'article',
       			columnWidth: 'article',
       			percentPosition: true,
       		});
       	}
       	/* FitVids & mobile menu */
       	if (parabola_settings.mobile==1) parabola_mobilemenu_init();
       	if (parabola_settings.fitvids==1) jQuery(".entry-content").fitVids();
       ```
   
 * After:
 *     ```
       	/* FitVids & mobile menu */
       	if (parabola_settings.mobile==1) parabola_mobilemenu_init();
       	if (parabola_settings.fitvids==1) jQuery(".entry-content").fitVids();
       	/* Second Masonry, in case elements expand size due to dynamic content */
       	if (parabola_settings.masonry==1) {
       		jQuery('body.magazine-layout .content-masonry').masonry({
       			itemSelector: 'article',
       			columnWidth: 'article',
       			percentPosition: true,
       		});
       	}
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Video Post alignment in Magazine layout’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/parabola/2.4.3/screenshot.png)
 * Parabola
 * [Support Threads](https://wordpress.org/support/theme/parabola/)
 * [Active Topics](https://wordpress.org/support/theme/parabola/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/parabola/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/parabola/reviews/)

## Tags

 * [video](https://wordpress.org/support/topic-tag/video/)

 * 1 reply
 * 1 participant
 * Last reply from: [whoisuncle](https://wordpress.org/support/users/whoisuncle/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/video-post-alignment-in-magazine-layout/#post-12982902)
 * Status: not resolved