Okay
  Public Ticket #1196093
Allow portfolio videos to fullscreen
Closed

Comments

  • Dan started the conversation

    Hi there how do I allow the fullscreen button when I add vimeo videos in my portfolio? There is no fullscreen button on the video player like there is when I embed on other pages. Thanks

    Here is an example of the code in the portfolio I am currently using 

    [vc_row][vc_column width="2/3"][videoplayer video="http://player.vimeo.com/video/185792409" withvideo="540" heightvideo="304"][/vc_column][vc_column width="1/3"][vc_column_text]

  •  2,010
    Ocean replied

    Hello,

    You need edit code for your issue

    1, Open file shortcode.php

    2, Find line code: // Video Player (use)

    <iframe src="<?php echo esc_url($video); ?>?title=0&byline=0&portrait=0&color=ffffff" width="<?php echo esc_attr($withvideo1); ?>" height="<?php echo esc_attr($heightvideo1); ?>"></iframe>
    

    3, Replace with this code: 

    <iframe src="<?php echo esc_url($video); ?>" width="<?php echo esc_attr($withvideo1); ?>" height="<?php echo esc_attr($heightvideo1); ?>" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" frameborder="0"></iframe>
    

    Thank you