Categories

Landing Page. How to replace video background with an image

Andre Flores July 7, 2015
Rating: 5.0/5. From 2 votes.
Please wait...

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

Best Landing Page Design
This entry was posted in Landing Page Tutorials and tagged background, image, landing, page, video. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket