Welcome! To use this support forum, please Login or Join Today!

   

Theme via ssl/https

{name}
Rank

Total Posts: 16

Joined 2014-09-23

PM

 

Hello,

In the next weeks I would like to migrate the theme/my page to a https-connection. Is your theme in general ready for for https?

One example: If I use an iframe via your shortcode (http://themes.simplethemes.com/mobius/shortcodes/)

[youtube responsive=“true” autoplay=“false” controls=“false” id=“HJSxwwZI4XI” showinfo=“true” hd=“true”]

the video in your example load with http and not per https

<iframe id=“player” type=“text/html” frameborder=“0” src=“http://www.youtube.com/embed/HJSxwwZI4XI?autoplay=0&c></iframe></div>

If I connect my page via https and the user will try to load a page with a video,it seems that this page runs in an error like “mixed content”.

Message from chrome console
Mixed Content: The page at ‘https://www.EXAMPLE.com/’; was loaded over HTTPS, but requested an insecure resource ‘http://www.youtube.com/embed/wQIqY6eyVN4?wmode=transparent’;. This request has been blocked; the content must be served over HTTPS.

Kind regards,

Marc

{name}
Rank

Total Posts: 6

Joined 2017-01-13

PM

 

Hello, I’m sorry for the delayed response to your question.
The site owner (Casey) is unhealthy and has hired me to participate in resolving outstanding issues while he is away.

With the latest version of WordPress you can just enter the video URL and it will create the embed for you automatically. If you prefer to use the shortcode method (which I prefer because of the minimal UI) then for the time being you can edit wp-content/plugins/smpl-shortcodes/includes/shortcodes.php on line #667:

change:

$video .= 'src="http://www.youtube.com/embed/' 

to

$video .= 'src="https://www.youtube.com/embed/' 

or to

$video .= 'src="//www.youtube.com/embed/' 


I’ll submit a pull request to the plugin repo on github so it will be there when you update again.