- This topic has 14 replies, 3 voices, and was last updated 3 years, 3 months ago by
Geoffrey A..
-
AuthorPosts
-
February 9, 2023 at 9:45 am #2527551
Geoffrey A.
Hi there,
I was applying this document https://docs.generatepress.com/article/background-video/https://docs.generatepress.com/article/background-video/
to add a video in a container in a block, but it did not work. I add the CSS in: appearance – customize – additional CSS. Was it correct?February 9, 2023 at 11:22 am #2527656Ying
StaffCustomer SupportHi there,
Yes, it’s correct.
Can you link us to your site where we can see this block with the video?
February 9, 2023 at 11:46 am #2527670Geoffrey A.
Hi Ying, here is the link
I added the CSS to the same page, and it worked, but could you teach me how to resize it for mobile?
https://underwaterbioacoustics.com/hydrophone-copy/February 9, 2023 at 12:06 pm #2527683Ying
StaffCustomer Support1. It seems you’ve added the CSS code to the block’s additional CSS class(es) field, it’s not the right place, can you remove that?
https://wordpress.com/support/wordpress-editor/adding-additional-css-classes-to-blocks/2. I’m not seeing the CSS code inside the customizer > additional CSS, can you make sure the cache is cleared?
This is the only CSS I see in the additional CSS field:
https://www.screencast.com/t/hiDRBoaXZFebruary 10, 2023 at 1:13 am #2528162Geoffrey A.
Hi Ying, I did it, but instead of being inside the blog, it is on the top of the page and covers 100% of the page width.
Could you tell me how I can make it occupy only the space allotted in the blog?
Thank you.
February 10, 2023 at 1:27 am #2528172Fernando Customer Support
Hi Geoffrey,
For reference, can you re-share the link to where we can see you’ve implemented this?
The link previously shared seems to not exist anymore.
You may use the Private Information field for this: https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information
February 10, 2023 at 1:28 am #2528176Geoffrey A.
Hi Fernando, I unpublished it, but it is published again.
February 10, 2023 at 1:32 am #2528178Fernando Customer Support
Thank you! To clarify, do you want it to occupy just the left side of the Grid Block it’s in?
February 10, 2023 at 1:34 am #2528180Geoffrey A.
Yes, the left side. Thank you.
It is set in another container.February 10, 2023 at 1:36 am #2528184Fernando Customer Support
Thank you for clarifying.
Can you try removing this part of the CSS code?:
.background-video { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0.5; }Let us know how it goes.
February 10, 2023 at 1:43 am #2528192Geoffrey A.
Thank you, Fernando. It works perfectly. I am starting to understand what happened.
I have another question because I manage two accounts. This is for a company, but I purchased Generatepress for a personal project.
I installed that code yesterday to be used in the head of all my pages, but I want to also add it to my personal page this code to use it in some blocks. How can I do it? Can I change the code’s name?
.background-video for the heads of the pages
and let’s say,
.background-video-block for the blocks inside the page?February 10, 2023 at 1:47 am #2528199Fernando Customer Support
If you’ll be having different CSS for the other videos, you’re correct. You’ll need to use a different CSS class.
But if it’s just the same, using the same class would be alright.
You can probably test first with the same class, and change it if necessary.
February 10, 2023 at 1:53 am #2528203Geoffrey A.
Thank you so much, Fernando.
Have a great day.
February 10, 2023 at 1:55 am #2528204Fernando Customer Support
You’re welcome, Geoffrey! Have a great one too!
February 10, 2023 at 1:57 am #2528205Geoffrey A.
Thank you so much, Fernando. I am understanding how this works.
Have a great day.
-
AuthorPosts
- You must be logged in to reply to this topic.