Use of API in WordPress with SSL (HTTPS)

  • 1
  • Problem
  • Updated 1 year ago
Hello, I purchased a WordPress theme that uses WU API to display the weather of a certain location. I registered for an API, checked analytics for errors - all good. My problem is that I upgraded my site to use an SSL and HTTPS, but the API calls return the HTTP version, resulting the website to be marked as Not secure due to mixed content ( HTTPS + HTTPS). Can you guide me on how to use your API with HTTPS? I checked and the API responses work on WU's end with HTTPS.
Photo of Panagiotis Tabakis

Panagiotis Tabakis

  • 2 Posts
  • 1 Reply Like
  • puzzled

Posted 1 year ago

  • 1
Photo of Panagiotis Tabakis

Panagiotis Tabakis

  • 2 Posts
  • 1 Reply Like
Looks like the API call was hardcoded with HTTP on my theme.  Edited a .js file on my theme (had the name of my theme, may vary depending the theme) and removed http (protocol relative).