-
-
Azam, is it possible to make the video embed in product description page to be centered?
For example here https://stackdeal.ru/catalog/easysplitter/
It even shows weird in the editor http://joxi.ru/Y2LzXvHElKZLr6
-
Tried this:
.wp-video {
text-align: center;
margin-left: auto;
margin-right: auto;
}didnt work
-
Hi,
Please try to use following:
iframe {
display: flex;
}For example here https://stackdeal.ru/catalog/easysplitter/ this one was also not centered aligned before.
Please check and advise,
Thanks,
-
-
Azam, sorry, i`m not big code guy. Where should i input this iframe code?
I can see that you added it to my code in custom css:
.wp-video {
text-align: center;
margin-left: auto;
margin-right: auto;
}
iframe {
display: flex;
}But still it doesnt work. The video in https://stackdeal.ru/catalog/easysplitter/ still not centered. Or i dont understand what you mean?
-
Hi,
It looks like that, the video is centered and working perfectly on the product page. Moreover, in the screenshot, it looks that you’re seeing video inside the editor, not on the webpage. Please check the video on the webpage and let me know.
Take a look at this: Before centered Image and After centered Image .Thanks,
-
Azam, sorry to bother you again about this freaking wp video embed.
But is it possible to make wp video box same width as text and images?
Check here http://joxi.ru/V2VbBjHkPR6R2v
.wp-video {
text-align: center;
margin-left: auto;
margin-right: auto;
}
iframe {
display: flex;
}This code doesnt help with that.
maybe need to do something with this code?
@media(min-width: 1025px) {
.woocommerce div.product .woocommerce-tabs .panel .codeless-content {
width: 60%;
margin: 0px auto;
}
}Thanks, bro
- This reply was modified 3 years, 6 months ago by slayoffer.
-
-
Hi,
The issue is due to the html5video plugin. The video is occupying the complete width that’s why the video is overflowing the content container. Please add the following code at CSS-hero line#154max-width:100%;
Thanks,
-
Azam, thank you very much for adding this code by yourself! Looks great now!
Actually this example product has standard wp embedded video, as we decided to get rid of HTML5 Video plugin because it doesnt work with Clearfy plugin and it doesnt work with AppMySite service.
So will delete HTML5 soon, 20 bucks wasted =)
-
-
Azam sorry! Just today i noticed that on mobile version the height of WP video player is too big.
Please check http://joxi.ru/Q2KzpvHvP1D1mj
Is there any CSS solution for this?
-
Hi,
It can be done using CSS with a media query. Please check the CSS code inside custom codes (Customizer > General > Custom Codes)Thanks,
-
-
Ok, great, thanks, Azam. I set height to 240px and now its looking nice on mobile. Is it ok that height is not set to auto now?
-
Hi,
Welcome, It’s not necessary. It all depends on your need, you can change height as you need to do.Thanks,
-
-
-
You must be logged in to reply to this topic.