• Hi,

    I am using a plugin to add featured videos. It is kinda working the featured videos are added in place of featured images but the container box is stretched out. Any idea how to keep the box the same size as the rest and centre the video??

    See here https://thevoguishvagabond.com/

    help appreciated, thanks

Viewing 1 replies (of 1 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi, this adjusts the bottom padding that is creating the space for the entry for posts that have a featured video, but it doesn’t work for all screen sizes. You could use some Media Queries to further adjust things where they go awry, but if an inserted video has a different aspect ratio (width to height) then that video would be off compared to others. On the Cubic theme, I think this is going to be a real challenge. Here is the custom CSS I came up with.

    .post.format-video.has-post-thumbnail {
    	padding-bottom: 14.55% !important;
    }
    @media screen and (max-width: 1023px) {
    	.post.format-video.has-post-thumbnail {
    		padding-bottom: 21.9% !important;
    	}
    }

    It might be worth considering a different theme that will work better with the featured video plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Cubic featured videos iframe stretching container box on Homepage’ is closed to new replies.