Archived topic
Centered video in section
5 replies · Started by Annalena on June 14, 2018
Hi Tom or Leo!
I don't know how to get my video in the center of the section, I don't want it to be on the left, I have used GP section when making this page on my site. I also wonder if you know what video format is best to use for showing products? I don't like the play button and the toolbar to show in my video. Do you have a suggestion for that?
Here's the page in question: https://anleja.se/lampor-ljuslyktor-vaggdekorer/
Thank you very much!
Annalena Jansson
Hi there,
This CSS should center the video:
#generate-section-3 .wp-video {
margin: auto;
}
I'm not sure which format is best suitable for you need unfortunately. If you can find an example you like I can try to tell you what they are using :)
Let me know.
Hi Leo!
Thanks for your help, it got my video to the center. But now I wonder how I can get it to start without people having to push the play button? I have set it to autoplay and loop, but it doesn't start anyway, shouldn't it do that when set to autoplay?
Thanks!
Hmm I'm not sure. Looks like you are using a plugin to insert the video?
If so it's best to check with their support :)
Hi Leo!
No, I'm not using a plugin, I clicked add media in GP-section. Maybe it's the video itself that generates the toolbar. I might have to find another video provider. The weird thing is that it doesn't show the toolbar all the time. Can you recommend a video edit software?
Thanks for your help Leo.
Annalena
Hmm from the code it looks like it's from a plugin. Perhaps this one? https://wordpress.org/plugins/media-element-html5-video-and-audio-player/
Can't quite tell as you have caching plugin in on.
We just upload videos to a site like this: https://vimeo.com/
Then just enter the link into the content.