• 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 to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter whoisuncle

    (@whoisuncle)

    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.