Large Video with Text Box - Add opacity to text box, change colour, using Motion Theme

Solved

Large Video with Text Box - Add opacity to text box, change colour, using Motion Theme

Tixi
New Member
4 0 0

Motion Theme

Large Video with Text Box

Need opacity adjustment for the opaque text box,

Want to change text box colour that is tied to background colour scheme

 

Does anybody have a solution?

Thank you

 

Roserae · Customize Book Nook TJ Motion Theme · Shopify - Opera 25_10_2024 14_08_02.png

Accepted Solutions (2)

SteveC_Help
Shopify Partner
18 5 6

This is an accepted solution.

Hi Tixi,

 

I may be able to help. If you cannot change the color via the Theme Settings, you can apply this Custom CSS code to the "Large Image with text box" section:

 

.background-media-text__text {
background: #000000;
}

 

You can find your desired hex color on this website and insert it into the code.

 

Hopefully, that helps. Cheers!

View solution in original post

SteveC_Help
Shopify Partner
18 5 6

This is an accepted solution.

Understood! In that case, you can use a CSS rgba() function. The r, g, b (red, green and blue) can be found on the same website. The a (alpha) denotes the opacity 0.0 = fully transparent and 1.0 = fully opaque.

 

If you wanted a red background with 75% opacity, the code would like this:

 

.background-media-text__text {
   background: rgba(255, 0, 0, 0.75);
}

 

Here is a screenshot from the site with RGB to insert.

RGB.png

 

Insert that code into the custom CSS and you should get the results you are looking for! Cheers!

View solution in original post

Replies 6 (6)

SteveC_Help
Shopify Partner
18 5 6

This is an accepted solution.

Hi Tixi,

 

I may be able to help. If you cannot change the color via the Theme Settings, you can apply this Custom CSS code to the "Large Image with text box" section:

 

.background-media-text__text {
background: #000000;
}

 

You can find your desired hex color on this website and insert it into the code.

 

Hopefully, that helps. Cheers!

Tixi
New Member
4 0 0

Hi SteveC,

 

I entered your code into the custom CSS code section and it worked, I can now change the colour of the text box!!

Thank you for your input, it has answered half my query 🙂

SteveC_Help
Shopify Partner
18 5 6

Great, happy to hear that the solution worked. What was the other half of you query?

Tixi
New Member
4 0 0

I wanted to add a percentage of transparency to the text box background overlay of the video. For example, 75% transparency text background. Text remains at 100 %.

SteveC_Help
Shopify Partner
18 5 6

This is an accepted solution.

Understood! In that case, you can use a CSS rgba() function. The r, g, b (red, green and blue) can be found on the same website. The a (alpha) denotes the opacity 0.0 = fully transparent and 1.0 = fully opaque.

 

If you wanted a red background with 75% opacity, the code would like this:

 

.background-media-text__text {
   background: rgba(255, 0, 0, 0.75);
}

 

Here is a screenshot from the site with RGB to insert.

RGB.png

 

Insert that code into the custom CSS and you should get the results you are looking for! Cheers!

Tixi
New Member
4 0 0

Thank you, i will try this out!