New Landing How can we help? Themeforest Theme Support Flexform Youtube video embed – Remove title

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Flexform
  • #99511
    Osmaan
    Member
    Post count: 8

    Hi,

    I would like to have a youtube video embedded into my page but with the titlebar on the video removed.

    If I use the video element from the pagebuilder – it doesn’t let me add code to remove this.

    But if I instead add the following code <iframe width=”853″ height=”480″ src=”//www.youtube.com/embed/rYSBj3rflas?rel=0&showinfo=0″ frameborder=”0″ allowfullscreen></iframe> – as a raw HTML element – it displays the video without the menu & looks good on a desktop. But video doesn’t adjust in terms of mobile responsiveness.

    Any tips or suggestions to remove the Youtube titles and use the Video elements in page builder?

    Many thanks

    Os

    #99839
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit media.php at /flexform/includes/page-builder/composer/lib/shortcodes/ through FTP software.

    Find this code:-
    $embed = $wp_embed->run_shortcode('[embed width="'.$video_w.'"'.$video_h.']'.$link.'[/embed]');
    Replace with
    $embed = $wp_embed->run_shortcode('[embed width="'.$video_w.'"'.$video_h.']'.$link.'[/embed]');
    $embed  = str_replace('&rel=0','&rel=0&showinfo=0',$embed);

    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #115820
    mhote
    Member
    Post count: 394

    Great Mohammad. How would this work in Dante? For videos in posts, pages and products – thanks!

    #115823
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit media.php at /flexform/includes/page-builder/builder/shortcodes/ through FTP software.

    Find this code:-
    global $wp_embed;
    $embed = $wp_embed->run_shortcode('[embed width="'.$video_w.'"'.$video_h.']'.$link.'[/embed]');
    
    Replace with
    $embed = $wp_embed->run_shortcode('[embed width="'.$video_w.'"'.$video_h.']'.$link.'[/embed]');
    $embed  = str_replace('&rel=0','&rel=0&showinfo=0',$embed);

    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #115845
    mhote
    Member
    Post count: 394

    Sorry Mohammad – can’t find that file or file path in Dante. Any ideas?

    #115858
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Sorry, i just forgot to change the path. Please check with this path /dante/swift-framework/page-builder/builder/shortcodes/.
    Thanks
    Mohammad

    #115859
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    The file path for dante is dante/swift-framework/page-builder/builder/shortcodes/

    – Kyle

    #115893
    mhote
    Member
    Post count: 394

    Thanks both. I’m trying to use this to remove a video on product page. It doesn’t seem to work. Is there anything different needed for the product page?

    #115914
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    What and where did you insert youtube embed code for product? I need to check that url.
    Thanks
    Mohammad

Viewing 9 posts - 1 through 9 (of 9 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