Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • timpennington Friend
    #1089939

    I purchased a SSL license for my site, buddywheatley.com

    On the main page of JA Healthcare, it has a video component that pulls an image from Youtube to run in the spot.

    However, the image it is pulling from on Youtube is from a "non-secure" URL address: http://img.youtube.com/vi/FWdkDQahSh4/maxresdefault.jpg

    Therefore, the SSL certificate says it is pulling from a "mixed use" site and can’t secure the site.

    I want to go into the CSS or HTML and have it pull from this image: https://img.youtube.com/vi/FWdkDQahSh4/maxresdefault.jpg

    Which is the "secure" image; the coding is:

    <div class="acm-spotlight full-width">
    <div class="row equal-height equal-height-child">
    <div class="col col-xs-12 col-sm-12 col-md-6 col-lg-6">

    <div id="acm-video-110" class="acm-video style-1">
    <div class="video-thumb">
    <img alt="" src="http://img.youtube.com/vi/FWdkDQahSh4/maxresdefault.jpg" />

    <a  onclick="javideoPlay();"  title="Play" class="btn btn-border btn-border-inverse btn-rounded btn-play"><span class="sr-only">Watch the video</span><i class="fa fa-play"></i></a>
    
    <div class="video-player"><div class="video-wrapper">   
                    <div id="videoplayer">
            </div>
          </div></div>

    Is there any way to go in and change where the image is pulling from? I’m not sure I know where that HTML is coming from.

    Thanks

    Phill Moderator
    #1089959

    Simple method with no coding involved – install Akeeba admin tools. It has an option in the free version that forces all external calls to be served as the secure version. One click and the job is done for all your pages.

    I will raise the question with the dev team to look into all our components and templates to update for the future. The problem lies for many who have large numbers of older articles with http embedded documents. For them either the above fix, or potentially a lot of work updating old articles.

    Saguaros Moderator
    #1090033

    Hi,

    You can open this file: root/templates/ja_healthcare/acm/video/tmpl/style-1.php

    Look for this line of code:

    <img alt="" src="http://img.youtube.com/vi/<?php echo $video_link; ?>/maxresdefault.jpg" />

    change it to:

    <img alt="" src="//img.youtube.com/vi/<?php echo $video_link; ?>/maxresdefault.jpg" />

    Regards

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

This topic contains 2 replies, has 3 voices, and was last updated by  Saguaros 6 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum