Our Support team is ready to present you a new tutorial that will become an indispensable guide for managing Video Background module in your PrestaShop store.
Video Background module allows to add background video to any block in your HTML page (there should be the id or unique tag, we will show it later in this tutorial):
To add the background video or to replace it with another one, please follow the steps below:
Upload the video files and preview images to your server to modules/tmvideobackground/video folder (or any other folder on server) using FTP or hosting control panel.
The video should be uploaded in 3 formats:
All of those 3 files should have exactly the same names. In our example the following files are responsible for the video that is shown at the front end at the moment:
And those are the files for the new video which should replace the current one (we have just uploaded them to the server):
Preview images should be also uploaded to server in 3 formats (in our example the title of preview images is clothes):
Now, please log into your PrestaShop admin panel and go to Modules->Modules:
Begin to type the name of the module in the Search field on the left. Press Configure button when it appears:
Let us explain text fields that you see inside the module one by one:
- Video selector is the element of HTML page where the background video will be added (id or unique tag as “body”, “header”, “footer”, etc.). No other background should be added for this element to make the video displayed correctly.
- Video path shows the path to your video files (please note that the path should have / at the end). The files can be located in any folder on server, but we recommend that you upload them to modules/tmvideobackground/video folder and preserve the template file structure.
- Video files name is the names of your video files. Only name should be added in that area (there is no need to write format. In our case it is currently video1):
To replace/to add new video , replace/insert new filename in Video files name section. Our new files name will be clothes – the title of the video files that we have earlier uploaded to the server.
Click Save button to apply changes to your store front end:
Refresh the front end to see the updated video:
If you want to replace background video with a static image, you need either to delete or to rename all of the video files on your server in modules/tmvideobackground/video folder.
In our case we will rename all video files with title clothes, as this title was inserted to Video files name section in Video Background module on the previous steps:
Refresh the front end to see the changes. Static image named clothes from modules/tmvideobackground/video folder appears now instead of video (since video files are not affecting front end any more):
That’s it! Now you know how to replace the video or make static image appear instead of it in Video Background module of your Prestashop 1.6.x. store. Please feel free to check the detailed video tutorial below: