Skip to:
Content
Pages
Categories
Search
Top
Bottom

Control oEmbed video size


  • Paul Bursnall
    Participant

    @style960

    How can I add css to control the size of oEmbed videos – YouTube, Vimeo etc? From what I can see the css used by default is pulled from the external video source. I don’t know if, or how I can override this? I have added custom css styling but that hasn’t worked.

Viewing 2 replies - 1 through 2 (of 2 total)

  • @mercime
    Participant

    @mercime

    @style960 for video and other embeds, that’s usually handled by the setting of the content width in your theme’s functions.php file.
    /**
    * Set the content width based on the theme’s design and stylesheet.
    */
    if ( ! isset( $content_width ) ) {
    $content_width = 660;
    }


    Paul Bursnall
    Participant

    @style960

    @mercime Apologies for the late reply, I’ll give this a try, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Control oEmbed video size’ is closed to new replies.
Skip to toolbar