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; }
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
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com