New Landing How can we help? Atelier Vimeo full screen

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Atelier
  • #240809
    bastha
    Member
    Post count: 11

    Hi,

    Somehow i’m missing the full screen button if I add a vimeo video within a post. I’m probably doing something wrong, could you help me out?

    #240912
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Are you using the vimeo url with https instead http. It should be http://vimeo.com/36063664.
    Thanks
    Mohammad

    #241025
    bastha
    Member
    Post count: 11

    I tried using you link to be sure, still the same issue.

    #241190
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me specific page url and correct admin login detail to check and resolve the issue.
    Thanks
    Mohammad

    #241256
    bastha
    Member
    Post count: 11
    This reply has been marked as private.
    #241713
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please go to edit page. Insert text block element of Swift Page Builder. You will see icon for shortocode at text block content editor. Please check the attachment.
    Thanks
    Mohammad

    Attachments:
    You must be logged in to view attached files.
    #241724
    bastha
    Member
    Post count: 11

    Hi Mohammad, thx but that’t not what i ment. I’m missing the full screen button within the vimeo video.

    Attachments:
    You must be logged in to view attached files.
    #241738
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    `function sf_video_vimeo( $url, $width = 640, $height = 480 ) {
    $url = str_replace( ‘https://’, ‘http://’, $url );
    $video_id = sf_get_vimeoid( $url );
    $vimeo_params = apply_filters( ‘sf_vimeo_embed_params’, ‘?title=0&byline=0&portrait=0’ );

    $video_padding = ( intval( $height, 10 ) / intval( $width, 10 ) ) * 100;
    $inline_style = ‘padding-bottom: ‘ . $video_padding . ‘%;’;

    if ( $video_id == “” ) {
    return ‘<div class=”sf-video-wrap”>’ . __( “Video not found”, “swiftframework” ) . ‘</div>’;
    }

    if ( is_ssl() ) {
    return ‘<div class=”sf-video-wrap” style=”‘ . $inline_style . ‘”><iframe itemprop=”video” class=”video-embed” src=”https://player.vimeo.com/video/&#8217; . $video_id . $vimeo_params . ‘” width=”‘ . $width . ‘” height=”‘ . $height . ‘” webkitallowfullscreen mozallowfullscreen allowfullscreen ></iframe></div>’;
    } else {
    return ‘<div class=”sf-video-wrap” style=”‘ . $inline_style . ‘”><iframe itemprop=”video” class=”video-embed” src=”http://player.vimeo.com/video/&#8217; . $video_id . $vimeo_params . ‘” width=”‘ . $width . ‘” height=”‘ . $height . ‘” webkitallowfullscreen mozallowfullscreen allowfullscreen ></iframe></div>’;
    }
    }

    `
    Thanks
    Mohammad

    #241827
    bastha
    Member
    Post count: 11

    thx Mohammad, it works!

    #241831
    David Martin – Support
    Moderator
    Post count: 20834

    Great – thanks Mohammad!
    – David.

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

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

License required for one of the following items
Login and Registration Log in · Register