How to Get Your WordPress Site to Cover the Entire Screen

People browse the web on their phones, and since most phones these days are big enough to show videos and pictures easily, most people expect to see videos and images on the sites they visit.

If you’re running a WordPress site with a custom-designed theme, getting video to flow seamlessly across the whole screen can be tricky. In this article, we’ll walk you through the step-by-step process of creating a WordPress site with video that fills the entire screen on every device.

Set The Width Of Your Videos To 100%

It’s common knowledge that the maximum width of a video on a website is usually around 1280 pixels. However, on a phone, the width of the screen is typically around 960 pixels, meaning videos don’t usually fit the entire screen. This is where most people run into problems. If you’ve ever tried to watch a video on a phone and had to do some zooming, you know what we’re talking about.

When designing your theme, set the embed tag to 100% to ensure that any videos you include have the same width as the rest of the screen content. If you don’t set the width, videos will be stretched to fit the screen, which can cause a lot of pixelated video.

Use Media Query To Determine The Best Way To Present Your Video

When you’re designing your theme, include a few sizes of videos so that you can determine the best way to present the video content on different devices. A media query is a way of specifying different styles of content based on the screen content. For example, if you have a mobile version of your site that has a 960-pixel-wide screen, you may want to show a square photo on the mobile site, and use a circle photo on the desktop site.

A media query can look like this:

@media (min-width: 768px){


The part inside the {} curly braces is what you’ll need to fill in based on the screen size. In this example, we’re checking to see if the screen is at minimum 768 pixels wide, which is the case on most mobile devices these days. We then declare that the {} section is only needed for mobile phones and that it should be hidden on desktop devices. As a result, on mobile phones, the will hide, but on the desktop version, the video will be shown in its full glory.

Include An Embed Tag For Your Videos

Once you have your video set to 100%, include an embed tag for each video you have. This is so that people can easily share your video content with others. An embed tag will play the video automatically when someone clicks on it or taps it with a mouse.

To add an embed tag to your video content, simply type <embed> where you want it on your page. Then, add your usual video and/or audio tags as normal. Here’s an example:

<embed src="your-video-file.mp4" autoplay="" width="400" height="200"></embed>

You can put multiple embeds on one page if you want. Just separate them with a <br /> tag.

Use A Script To Automatically Play Your Videos On Page Load

If you’re using WordPress to power your site, you can use a WordPress plugin to automatically play videos on page load. This can be a great way to get videos to populate your site without having to constantly add new content to keep the video up-to-date.

To play videos automatically on page load, you’ll want to look into a WordPress video plug-in as they can handle the whole process for you. The best video plug-in for WordPress, in our opinion, is TubePlus. With TubePlus, all you need to do is create a playlist of the videos you want to display and they’ll do the rest.

Once you have your playlist created, you can share it with others or keep it private. If you want to keep it private, you’ll have to set the playlist as private and make sure no one else can access it. This way, only you will be able to view the videos when you’re signed into your WordPress account.

To use the playlist, simply go to Settings > Reading and set the Videos section to On.

If you’re looking for a free video plug-in, check out the WordPress video tutorial by Chimp Studios, who also produce the WPBeginner blog. In the tutorial, you’ll learn how to create a video playlist that will automatically play when someone visits your site.

You can use this same technique for automatically playing music as well, which is great if you have a lot of tracks that you want to listen to while you work. Just go to Settings > Reading and set the Music section to On to play music automatically when someone visits your site.

Use Javascript To Change The Style Of Certain Elements On Page Load

For certain elements on your page, like headlines, images and videos, you can use Javascript to change the style of the element on page load. This can be a great way to change the look of your website quickly and easily without having to mess with code.

To change the style of headlines, use the following Javascript:

<script type="text/javascript">

function myFunction() {

document.getElementById("headline").style.display = "block";



The above code will change the style of the headline element to display: block;. This will make the headline appear in a larger font size and with a more emphasized text-indent. You can add additional styles to the getElementById() function call using the following format:

getElementById("element").style.display = "block";

In the code above, the element is the element’s ID that you’re targeting. This is a good practice when targeting multiple elements on your page as it makes it easier to keep track of what’s being customized.

Use An Iframe To Include Another Website’s Content On Your Page

If you want to include content from another website, like a news article or a review, on your page, you can do so using an iframe. An iframe is just like a standard iframe tag, but it’s used to include content from another site. To include a website’s content within your page, just add an iframe to your page’s <div> tag.

<iframe src="your-website-link" width="300" height="200" frameborder="0"></iframe>

This will include the content from your-website-link within your page. Make sure that the website you’re including content from has given you permission to do so and that they aren’t trying to steal any of your traffic.

Use An Sock Puppet To Automatically Rotate Your Videos

Did you know that the human eye is naturally attracted to moving objects? This is why videos often flicker on and off the screen when they’re playing, it makes humans easier to focus on the content. To make sure that your videos continue to attract the viewer’s attention, you can put a sock puppet in the video content and have it dance around while the video plays. This will make it seem as though the video is constantly flickering on and off the screen, keeping your audience engaged and interested in the content.

The best way to add a sock puppet to your video content is to use the following code just below the <embed> tag: