New Landing How can we help? Themeforest Theme Support Dante Video isn't scaling properly on mobile in YouTube post

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Dante
  • #106712
    osocio
    Member
    Post count: 19

    A YouTube video isn’t scaling properly in a Dante YouTube post on mobile.
    I also use the Responsive Video Embeds plugin. When disabling this plugin the scaling problem still occur.
    How to solve it? (It’s on a testsite, url and password is visible for the staff)

    See attachment.

    Kind regards
    Marc

    Attachments:
    You must be logged in to view attached files.
    #106882
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Can you try adding this in the Custom CSS in Theme Options?

    .sf-video-wrap {
        height: 0;
        overflow: hidden;
        padding-bottom: 58.25%;
        padding-top: 35px;
        position: relative;
    }
    
    .sf-video-wrap iframe {
        display: block;
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
    }

    Let me know, what you got.

    Thanks,
    laranz.

    #107171
    osocio
    Member
    Post count: 19

    Bingo! Thanks laranz!

    #107177
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Thanks laranz
    -Rui

    #107189
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    You’re welcome osocio ๐Ÿ™‚

    Let us know, if you have any other questions.

    Thanks,
    laranz.

    #115698
    mhote
    Member
    Post count: 394

    Hi Laranz – helpful answer here. Is there a way to apply this rule to embedded youtube/vimeo videos? ie. to make the video always shrink to 100% width when on smaller device screens? Thanks

    #115727
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    @mhote – Please refer this article http://avexdesigns.com/responsive-youtube-embed/ and hope that should help to you.
    Thanks
    Mohammad

    #115746
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    @mhote It will work.
    @Mohammad Thanks ๐Ÿ˜‰

    Thanks,
    laranz.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register