Background video banner

Solved
richforma
Tourist
11 0 1

Hi team 

 

i have put a video on the background of my store playing on loop.

the video is fine in both desktop and Android devices , however in ios , it does not play on Autoloop 😞 

1. can you please assist in correcting it to play on Autoloop on iOs devices as well ?

2. i want to integrate the header menu with the video ( showing on layers, video and on top of it menu on white color  ) 

below is the custom liquid i have put 

::

<style>
Video {
display: block;
margin: auto;
width: 100%;
height: 25%;}
</style>

<video autoplay loop playsinline muted>

<source
src="https://cdn.shopify.com/videos/c/o/v/83c6ca631e7648bc88d40fdd27e57c33.mov">

</video>

 

 

Accepted Solutions (2)
ZenoPageBuilder
Shopify Partner
848 151 169

This is an accepted solution.

You can move the custom code to the very beginning of base.css and the issue should be fixed on mobile

Screenshot 2023-10-31 at 11.21.41.png

About the 2nd question, to know the class of an element, you need to learn how to use the Chrome Inspect tool. It is a useful skill on your belt because you can use it again and again in the future. You can search on Youtube for a tutorial on using Chrome Inspect tool.

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com

View solution in original post

ZenoPageBuilder
Shopify Partner
848 151 169

This is an accepted solution.

You can append this code

 

.cart-drawer__empty-content .button {
    background-color: black !important;
}

The result

Screenshot 2023-11-01 at 09.24.03.png

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com

View solution in original post

Replies 18 (18)
ZenoPageBuilder
Shopify Partner
848 151 169

Hello @richforma 

Most modern mobile browsers block auto playing video to save bandwidth and battery.

So in short it is not possible to auto play video on mobile.

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
richforma
Tourist
11 0 1

it is happening only with i phone , other android devices play it on loop immediately while launching the page . 

i have another inquiry  ; i have been having a hard time with black colors hiding some sections , like the cart quantity ( including the remove button  , result search ( bar ) and while clicking the cart it gives a black  background hiding all info 

 

please see the below :

richforma_0-1698305743204.pngrichforma_1-1698305847530.pngrichforma_2-1698305999377.png

 

 

ZenoPageBuilder
Shopify Partner
848 151 169

Hello @richforma 

Android devices can autoplay if only sound is muted. Even if that is the case, some Android browsers still block autoplaying videos.

 

About the 2nd question, can you share the store URL so I can check the issue? If it is password protected, please share the password also.

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
richforma
Tourist
11 0 1

Sure 

 

https://richforma.net/

 

 

ZenoPageBuilder
Shopify Partner
848 151 169

You can add this code to base.css

 

.drawer__inner {
    background-color: white;
}

.drawer__inner .cart__checkout-button {
    background-color: black;
}

The result

Screenshot 2023-10-29 at 09.18.20.png

Hope that helps! 

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
richforma
Tourist
11 0 1

Hi 

 

i did , but still black the background 

 

richforma_0-1698551115393.png

 

ZenoPageBuilder
Shopify Partner
848 151 169

Then you can add !important like this

.drawer__inner {
    background-color: white !important;
}

.drawer__inner .cart__checkout-button {
    background-color: black !important;
}

 

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
richforma
Tourist
11 0 1

Look 😕 still 

 

richforma_0-1698658076846.png

 

ZenoPageBuilder
Shopify Partner
848 151 169

Then please add one more line

:root {
    --color-background: white !important;
}
Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
richforma
Tourist
11 0 1

Thank you so much it was fixed in all areas search bar ..etc  😀

 

i still have only one issue, the checkout button from the cart is still invisible and can not fix it 

 

richforma_0-1698661187154.png

 

richforma
Tourist
11 0 1

Hello 

 

i already fixed that the checkout button too , please ignore it

 

but unfortunately all the codes and correction we have made were only on desktop version , from the mobile it is still the same 😟

richforma
Tourist
11 0 1

Please I have another inquiry ; 

How can we locate classes that are in the drawer from the below screenshot, i want to modify this  .css. 
for example, in the drawer there is a button with class="button", but I am not able to locate it in order to change the background to black.

 

richforma_1-1698692263017.png

in the red square , there is a button ( continue shopping ) but it is not showing!

 

ZenoPageBuilder
Shopify Partner
848 151 169

This is an accepted solution.

You can move the custom code to the very beginning of base.css and the issue should be fixed on mobile

Screenshot 2023-10-31 at 11.21.41.png

About the 2nd question, to know the class of an element, you need to learn how to use the Chrome Inspect tool. It is a useful skill on your belt because you can use it again and again in the future. You can search on Youtube for a tutorial on using Chrome Inspect tool.

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
richforma
Tourist
11 0 1

Hi , i did but it is not fixed , still same in mobile , turned transparent instead of white 

 

richforma_0-1698733337659.png

 

richforma
Tourist
11 0 1

it has been fixed now , i moved all three lines to the top and showing correct in the mobile .

 

The only bar not showing is the continue shopping button when the cart is empty 

richforma_1-1698733727657.png

 

 

ZenoPageBuilder
Shopify Partner
848 151 169

This is an accepted solution.

You can append this code

 

.cart-drawer__empty-content .button {
    background-color: black !important;
}

The result

Screenshot 2023-11-01 at 09.24.03.png

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com
richforma
Tourist
11 0 1

Appreciate your  continuous support 

 

Thank you ! 

ZenoPageBuilder
Shopify Partner
848 151 169

You are welcome 🙂

Zeno Page Builder - Build responsive & SEO-optimized Landing pages, Blog posts, Product pages and more...
Learn more at zenobuilder.com