change custom play icon
-
go to lay options → scroll down to "appearance" section and here it is:

-
@arminunruh THANKS!!
-
when I upload an svg file, it fills almost the entire video's area. Is it possible to adjust the icon size somehow, @arminunruh ? When using an image its properly sized, but kind of unsharp. Thanks in advance!
-
hello!
so make sure you have updated to the latest version of lay theme
the svg used as the custom play icon just has the size of the svg that you upload
but you can use custom css to change the size:
lay options → custom css & html → custom css:
img.html5video-customplayicon{ width: 200px!important; } -
just trying to upload my own video play icon and have the same issue with svg. I set the css to:
.lay-vimeo-playicon-custom img { width: 200px !important; }but the svg is still scaled up to the edge of the video.
with png, I could set the image to 200x200px, but then the resolution of the icon looks pixel on retina displayswhat am I missing?
-
hey!
i think the svg itself needs to contain a width:
https://laythemeforum.com/topic/5190/svg-cursors-fix
basically, if you open the svg file with a texteditor, the svg tag needs to look like:
<svg height="20" width="20">
...
</svg>then the play icon is used on the video in that exact size by default.
if that wont work you can post your website address here and i will take a look -
Other question related to custom video button:
I am embedding videos in element grid here, using custom play button. I noticed an issue in chrome, that the sound is muted, even though in Laytheme I did not click the settings "mute". In safari, the sound seems to work. Also I tried to use the regular vimeo play button, and the sound also played in safari. Any tipps on how to solve this one? -
chrome does not support unmuting a iframe vimeo embed through a custom UI which the lay theme vimeo controls is.
nothing i can do here, its a browser restriction. you would need to use the default vimeo controls and disable the "lay custom controls" if you want to be able to unmute the video.
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Our Web Development company: 100k.studio
Want to tip me? https://www.paypal.com/paypalme/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