Support

Home Forums Event Espresso Premium SSL warning for background-image url (Youtube)

SSL warning for background-image url (Youtube)

Posted: June 23, 2017 at 5:24 am

Viewing 7 reply threads


whr-admin

June 23, 2017 at 5:24 am

I’ve set up the SSL and updates all http to https and all is working great … apart from where I have a links to YouTube videos.

The link itself is fine, but there seems to be a backround-image being added which is not https, but I can’t see where it comes from or how to update it.

The html looks like this:

<!-- media-gallery__item -->

<!-- media-gallery__item-title -->
<span class="media-gallery__item-title"></span>
<!-- /media-gallery__item-title -->

Anyone know where I can update this?


whr-admin

June 23, 2017 at 5:26 am

Sorry the html didn’t render on that post, I’ll try again.

The offending html is:
style=”background-image: url(‘http://img.youtube.com/vi/gHYvg1rSylY/hqdefault.jpg&#8217;);”>


Tony

  • Support Staff

June 23, 2017 at 7:29 am

Hi there,

I’ve set up the SSL and updates all http to https and all is working great

How did you set up SSL on your site?

How are you adding the video to your site?


whr-admin

June 23, 2017 at 7:51 am

The SSL is working fine and only shows warnings on the one page where the Youtube videos are. I’ve taken them off for now and so there are no warnings.

They were added as part of the ‘media’ content block, and entering the relevant URL from YouTube.


Tony

  • Support Staff

June 23, 2017 at 7:56 am

The SSL is working fine and only shows warnings on the one page where the Youtube videos are. I’ve taken them off for now and so there are no warnings.

Ok, but that doesn’t really answer my question.

How did you enable SSL on the site?

They were added as part of the ‘media’ content block, and entering the relevant URL from YouTube.

What is a ‘media content block’? It sounds like something from your theme or a page builder?

Can you add a screenshot of where you add the video link?

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots

Which theme are you using?


whr-admin

June 23, 2017 at 8:37 am

I didn’t feel it was relevant to explain the SSL process, as it seems to be working, and I also have it working on numerous other sites, but in summary:
I have an SSL through Let’s Encrypt, used a find-and-replace plugin to update http links to https, updated wp-config.php to force SSL for admin, set up redirects via htaccess to ensure that everyone accesses the site via https, and then checked the site and manually updated any remaining http links.

I’m using Fudge2 theme from Showthemes, and I presume that either it’s the page builder causing the problem (I think it’s custom built), or YouTube thumbnails are automatically delivered via http, but I doubt that is the case.

The media content block and uploader looks like this – https://wholehograces.co.uk/wp-content/uploads/2017/06/youtube.png


Tony

  • Support Staff

June 23, 2017 at 9:23 am

I didn’t feel it was relevant to explain the SSL process, as it seems to be working, and I also have it working on numerous other sites, but in summary

The problem is, I don’t know what your process is.

So you say it’s working properly and I take that as is, assuming it’s the same method I would use, only then to find out it’s not and that turns out to be the problem. SSL apparently working correctly does not mean it was setup correctly so I have to ask.

Whilst there’s nothing wrong with the above, it won’t fix content that is not using the correct schema for a URL, for example, the youtube thumbnail link you are referring to. The media/video section you are referring to is part of Fudge2 itself.

I had a quick look over the code used in Fudge2 and the problem with the URL is down to how the theme generating the thumbnail url, you’ll need to contact them and report this to have them check if ssl is enabled on the site when returning the thumbnail URL.

Or you could try using a plugin such as Really Simple SSL to dynamically change the schema for you. (Be sure to create a backup of your site before installing the above, just to be safe)


whr-admin

June 23, 2017 at 9:48 am

I have already created a support ticket with Showthemes to ask about the thumbnail URL, so I’ll see what they have to say

Thanks for your help

Viewing 7 reply threads

The support post ‘SSL warning for background-image url (Youtube)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso