Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #818766

    Hi, for some reason, the embedded youtube video on this page is getting a weird super small size:

    I have no idea where it’s coming from, since there are other youtube videos on the site that are OK:

    Do you know how I can fix it?
    Thanks
    Tom

    #819075

    Hey Tom,

    There is inline styling applied to it:

    width: 162px; height: 81px;

    Not sure if you added that or if it was included in the embed code, could you try to remove to see if it helps please?

    Best regards,
    Rikard

    #819187

    Hi, that’ my problem, there is no inline styling added.

    I usually just paste the youtube url onto the page, and wordpress does the rest. It adds those inline styles on this video for some reason.
    Even when I get a proper ember code from youtube, setting the dimensions to be larger, the inline styling still overrides it.

    So I don’t know why it’s being added…
    Thanks,
    Tom

    #819358

    Hi Tom,

    Here is the code you can put in themes/chioces/css/custom.css

    
    .container .seven.units iframe {
        min-width: 530px;
        min-height: 300px;
    }
    

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #820428

    That code worked, thanks Victoria!

    #820525

    Hi,

    Great, glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #882730

    Hi there,
    I need to open this topic again, since I realized that the code Victoria sent modifies all of the iframes on the site. The facebook and twitter share buttons are also in iframes, so they are made big as well :-(
    Is there any way to target the iframe just on the problem youtube video here?

    Thanks,
    Tom

    #883700

    Hi Tom,

    Sorry for the late reply. Please try this instead:

    .post-entry-47796 .container .seven.units iframe {
        min-width: 530px;
        min-height: 300px;
    }

    Best regards,
    Rikard

    #883908

    Thanks Rikard, it works using .postid-47796, I didn’t know the theme adds post level targeting. Good to know :-)

    #884120

    Hi,

    Great, that is actually WordPress default. Theme developers can opt not to include those classes but I don’t see the point of leaving them out :-)

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.