video background
-
Hi armin, i don't know if you remember you helped me out, putting a video as background on one of my website pages (this one http://www.nuno-maio.com/matou ) and you gave this code:
<video class="fixed-bg-video" preload="" muted="" autoplay="" loop="">
<source src="http://www.nuno-maio.com/wp-content/uploads/2016/10/Video_Matou_final.mp4" type="video/mp4">
</video>the thing is, now im doing the mobile version of the site and the video appears in all pages, what should i do?
thanks!
Hugs
-
You can only show the video on one page and hide it on the others.
http://laytheme.com/documentation.html#css-based-on-current-page
Something like that
.fixed-bg-video{ display: none; } body.slug-frontpage .fixed-bg-video{ display: block; }
For paid 1-on-1 Lay Theme Coaching, contact Audrey (audrey@cyberslayers.work) or me (info@laytheme.com).
We also code custom websites or bespoke Lay features. Drop me a line at info@laytheme.com or check out my work at arminunruh.com.
Want to support my work? paypal.me/arminunruh
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it