-
AuthorPosts
-
timpennington Friend
timpennington
- Join date:
- May 2009
- Posts:
- 242
- Downloads:
- 33
- Uploads:
- 14
- Thanks:
- 12
- Thanked:
- 1 times in 1 posts
February 3, 2018 at 5:13 pm #1089939I 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 ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
February 4, 2018 at 7:35 am #1089959Simple 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 5, 2018 at 3:39 am #1090033Hi,
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
-
AuthorPosts
This topic contains 2 replies, has 3 voices, and was last updated by Saguaros 6 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum