Site logo

[Resolved] Uploaded a video in a block charging a picture first and then a video

Home Forums Support [Resolved] Uploaded a video in a block charging a picture first and then a video

Home Forums Support Uploaded a video in a block charging a picture first and then a video

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #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?

    #2527656
    Ying
    Staff
    Customer Support

    Hi there,

    Yes, it’s correct.

    Can you link us to your site where we can see this block with the video?

    #2527670
    Geoffrey 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/

    #2527683
    Ying
    Staff
    Customer Support

    1. 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/hiDRBoaXZ

    #2528162
    Geoffrey 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.

    #2528172
    Fernando
    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

    #2528176
    Geoffrey A.

    Hi Fernando, I unpublished it, but it is published again.

    #2528178
    Fernando
    Customer Support

    Thank you! To clarify, do you want it to occupy just the left side of the Grid Block it’s in?

    #2528180
    Geoffrey A.

    Yes, the left side. Thank you.
    It is set in another container.

    #2528184
    Fernando
    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.

    #2528192
    Geoffrey 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?

    #2528199
    Fernando
    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.

    #2528203
    Geoffrey A.

    Thank you so much, Fernando.

    Have a great day.

    #2528204
    Fernando
    Customer Support

    You’re welcome, Geoffrey! Have a great one too!

    #2528205
    Geoffrey A.

    Thank you so much, Fernando. I am understanding how this works.

    Have a great day.

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.