New Landing How can we help? Themeforest Theme Support Uplift https on YouTube Embeds

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Uplift
  • #277340
    parcyvall
    Member
    Post count: 143

    Dear Support,

    the theme uses http links to embed youtube videos. This results in an unnecessary redirect chain.

    Kind regards,
    Simon

    Attachments:
    You must be logged in to view attached files.
    #277667
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Guess you have an https site.
    the Https plugin should replace that by https.

    -Rui

    #278300
    parcyvall
    Member
    Post count: 143

    Hi,

    I don’t have https enabled on my site. But shouldn’t I be able to embed youtube as https never the less?

    I thought this might be as simple as a little fix in the next update, am I wrong?

    Kind regards,
    Simon

    #278312
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    It’s designed to use the same protocol that users have in their site.
    I understand your point, will forward to our head developer to see his opinion.

    Thanks

    -Rui

    #278731
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Simon,

    Sure, it’s a valid request. I’ve just added the following to the next update:

    $ssl_override = apply_filters( 'sf_video_youtube_ssl', false );

    You can filter that and set it to true to force ssl on youtube embeds. Update due within 24 hours.

    Hope that helps.

    – Ed

    #278748
    parcyvall
    Member
    Post count: 143

    THANKS!!!

    #278923
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Thanks Ed.

    -Rui

    #278926
    parcyvall
    Member
    Post count: 143

    Dear Support,

    where can I find this code? I searched the function.php but did not discover it.

    Kind regards,
    Simon

    #278939
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    That code Ed talked about will only be available in that next update.
    After that update you can add this code to the functions.php of your child theme.

    function custom_force_youtube_ssl(){
       return true;
    }
    add_filter('sf_video_youtube_ssl', 'custom_force_youtube_ssl');

    -Rui

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 the following item
Login and Registration Log in · Register