Site logo

[Resolved] question about shadows in YouTube Embeds

Home Forums Support [Resolved] question about shadows in YouTube Embeds

Home Forums Support question about shadows in YouTube Embeds

  • This topic has 5 replies, 3 voices, and was last updated 4 years ago by Elvin.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1935089
    Raj

    Hello GP. Using the latest version of GP premium 2.0.3

    i would like to know if it’s possible to add a shadow under an embedded youtube video.

    as an example: https://codepen.io/bauhausweb/pen/zgrjQZ

    i’m adding the videos to my WP posts via iframe or direct URL paste.

    ty

    #1935147
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the site in question?

    You can use the private information field:
    https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    Let me know 🙂

    #1935195
    Raj

    Hi Leo, I’m posting in the box below. ty

    #1935209
    Elvin
    Staff
    Customer Support

    Hi Raj,

    You can try adding this CSS:

    figure.wp-block-embed-youtube {
        box-shadow: 5px 10px 10px rgb(0 0 0 / 50%);
    }

    This assumes you’re always going to use the Gutenberg Editor’s default block for embedding videos (figure.wp-block-embed-youtube).

    #1935216
    Raj

    Very cool Elvin, thanks for the late-night response. It is working. I’ll link below for you to see.
    🙏

    #1935217
    Elvin
    Staff
    Customer Support

    Nice one. Glad it works for you. No problem. 😀

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