Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved]WP 3.5 has removed max width settings for oembeds.Now they spill over!


  • rossagrant
    Participant

    @rossagrant

    Looks like WP 3.5 have has removed oembed max width/ height settings from the Settings—>Media tab.

    It only allows settings for images.

    This means new oembeds of YoTube etc will spill over massively on forums and the activity feed.

    Anyone see a way to fix this and should it be something we do in WP or BP?

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

  • @mercime
    Participant

    @mercime

    @rossagrant theme authors should add $content_width – it’s a constant used to set the maximum width of embedded content like videos. It’s a standard part of just about any well-coded theme like those in WP theme repo per requirement https://codex.wordpress.org/Theme_Review#Required_Hooks_and_Navigation

    Add the following at the top of your theme’s functions.php file
    /**
    * Sets up the content width value based on the theme's design and stylesheet.
    */
    if ( ! isset( $content_width ) )
    $content_width = 600;

    Measurement is in pixels. Change 600 as needed.

    It’s been resolved mercime – personally not sure of this ‘requirement’ but hey ho! p.s it’s not a constant though! and very badly named  🙂 .


    rossagrant
    Participant

    @rossagrant

    Thanks for this guys, yep issue resolved for now! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved]WP 3.5 has removed max width settings for oembeds.Now they spill over!’ is closed to new replies.
Skip to toolbar