Video Post alignment in Magazine layout

  • Author
    Posts
  • #103271

    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.

    Website: faith100.media/author/urbanvoicechannel

    #104043

    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,
    		});
    	}
    
    #104594
    Zed
    Cryout Creations mastermind

    Thank you for pointing this out. We’ll get it sorted for the next theme update.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 3 posts - 1 through 3 (of 3 total)

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