Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
94
rated 0 times [  99] [ 5]  / answers: 1 / hits: 15978  / 8 Years ago, fri, october 7, 2016, 12:00:00

How to disable and hide all controls on Wordpress 4.6.1 videos?



Following my actual code inside a WordPress page:



[video width=560 height=320 mp4=example.com/test.mp4 loop=true autoplay=true preload=auto][/video]

More From » css

 Answers
7

Hi you need to override the inline styles applied to .mejs-controls div for that video shortcode. You can:





.mejs-controls {
display: none !important;
visibility: hidden !important;
}





These controls normally only show on hover unless you tell them to do otherwise. I would ask why you want to disable the controls, taking this ability away from the user can result in her being frustrated with this restriction.



I found a bit more information here on this post: https://wordpress.stackexchange.com/questions/130402/hide-default-video-shortcode-controls-on-pageload


[#60467] Wednesday, October 5, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bradford

Total Points: 709
Total Questions: 117
Total Answers: 91

Location: Sao Tome and Principe
Member since Wed, Dec 21, 2022
1 Year ago
;