[contact-form-7 id="24078" title="Feedback EN"]

Landing Page. How to replace video background with an image

Hello! This tutorial shows how to replace the video background with an image in Landing Page templates.

Landing Page. How to replace video background with an image

If you want to replace the video background with the standard background image, you can follow the steps listed below:

landing_template_how_to_change_background_1

First of all, you should disable the script that loads the video.

  1. Using FTP/File Manager navigate to /js/scripts.js file and open it for editing.

  2. Locate the following code in the opened file:

	(function ($) {
	var o = $('.vide');
	if (o.length > 0) {
	include('js/jquery.vide.js');
	}
	})(jQuery);

Simply comment out/remove the aforementioned code so that it looks like the one below:

	/*(function ($) {
	var o = $('.vide');
	if (o.length > 0) {
	include('js/jquery.vide.js');
	}
	})(jQuery);*/

Save the file to apply the changes:

landing_template_how_to_change_background_2

You can see the video is gone from the page now:

landing_template_how_to_change_background_3

Now, let’s add a background image to the page.

  1. Upload the desired background image to the /images/ folder, let’s say, with the name “background-image.jpg”.

  2. Then, using Firebug extension in Firefox browser or standard “Inspect Element” feature of another browser locate the class which the video has been assigned to:

    landing_template_how_to_change_background_4

  3. Now, let’s assign the CSS rule to the previously found class, so the rule looks like the one below:

	.vide {
	background-image: url("../images/background-image.jpg");
	}

Add the code to the very end of your /css/style.css file:

landing_template_how_to_change_background_5

Do not forget to save the file to apply the changes.

Navigate back to your site and refresh the page to see the changes.

The background image has been successfully set.

This is the end of the tutorial, you have learnt how to change the background in your Landing template.

Feel free to check the detailed video tutorial below:

Landing Page. How to replace video background with an image