This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Can a Buzzfeed video width be resized to fit within a PB

9 years ago · Last reply by wireb 9 years ago
oh okay <a href="https://t.co/6e6ilA6b1K">pic.twitter.com/6e6ilA6b1K</a>
— BuzzFeed (@BuzzFeed) <a href="https://twitter.com/BuzzFeed/status/776068188631171072">September 14, 2016</a>

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

10
  1. Alex S Staff 9 years, 4 months ago

    Hi Wireb,

    Are all of the videos you wish to embed on Twitter? If so, you should be able to use the WordPress oEmbed functionality to do this. To do this, simply copy and paste the Twitter URL rather than using the embed code. Which will look like this.

    Once you’ve done that, you can have it resize via CSS but depending on the layout but please note that in very large rows, it can be absolutely massive. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Just add the following code.

    .so-widget-sow-editor .twitter-tweet, .so-widget-sow-editor .EmbeddedTweet, .so-widget-sow-editor .MediaCard-widthConstraint {
    	max-width: none !important;
    	width: 100% !important;
    }

    You might also need to install the SiteOrigin CSS Editor.

  2. wireb Private 9 years, 4 months ago

    This is a private message.

  3. Alex S Staff 9 years, 4 months ago

    Hi Wireb,

    Are you blocking Twitter via a browser extension (such as Ad Block, or Privacy Badger)? When I disable mine, it appears correctly:

  4. wireb 9 years, 4 months ago

    I’ve used IE, Brave and Opera and get the same results, which is, the width overlaps the column. The code given has no impact. Please note, I am all about the width and nothing else.

  5. Alex S Staff 9 years, 4 months ago

    Hi Wireb,

    I was expecting you to use a different widget. Please navigate to WP AdminAppearanceCustom CSS and remove the previously provided CSS, then add:

    .widget_black_studio_tinymce .twitter-video, .widget_black_studio_tinymce .twitter-tweet, .widget_black_studio_tinymce .EmbeddedTweet, .widget_black_studio_tinymce .MediaCard-widthConstraint {
    	max-width: none !important;
    	min-width: 1px !important;
    	width: 100% !important;
    }

    You might also need to install the SiteOrigin CSS Editor.

  6. wireb 9 years, 4 months ago

    Hi Alex,

    Thank you for your assistance. The CSS is better but there is an alignment issue. I had SiteOrigin CSS Editor installed before I started this thread. ref: http://salutethestupid.com/

    Regards,

    WireB

  7. Alex S Staff 9 years, 4 months ago

    Hi Wireb,

    Hm, by the looks of it, it looks like you’re referring to the widget padding you’ve set. Please open the Visual Editor that you used to add the Twitter embed and head over to the widget styles sidebar. Open the layout settings group and set the padding to 0 (or at least lower it).

  8. wireb 9 years, 4 months ago

    You nailed it, thank you again for great support.

    Question, what is the difference in the Appearance/SiteOrigin Custom CSS and the wiget’s sidebar which allows on code to work, yet another does not?\

    I understand the Appearance/SiteOrigin CSS is global. Is there any other difference between that and the one within the widget?

    Kind regards

  9. Alex S Staff 9 years, 4 months ago

    Hi Wireb,

    No problem.

    The CSS styles field in the Attributes settings group is only for inline styles. It’s intended purely for container adjustments, such as moving the background image up or something similar. To clarify, inline styles implies that it’s equivalent to:

    <div style="CSS STYLES HERE"></div>

    In other words, you cannot use selectors. For example, this is valid:

    color: #f0f;
    font-weight: 600;

    This is not:

    .example {
        color: #f0f;
    }
    .other-example {
        font-weight: 600;
    }

    SiteOrigin CSS requires selectors as it’s not applied inline.

  10. wireb 9 years, 4 months ago

    Thank you Alex for the explanation and the examples.

    Kind regards,

    WireB

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread