Title: external links in theme (*.googleapis.com) not changed to https
Last modified: August 20, 2016

---

# external links in theme (*.googleapis.com) not changed to https

 *  Resolved [Vezado](https://wordpress.org/support/users/vezado/)
 * (@vezado)
 * [15 years ago](https://wordpress.org/support/topic/external-links-in-theme-googleapiscom-not-changed-to-https/)
 * My theme has several http external links to google APIs for fonts etc.
 *     ```
       if ( $et_body_font <> '' ) {
       			$font_style .= "<link id='" . $et_body_font_id . "' href='http://fonts.googleapis.com/css?family=" . $et_body_font . "' rel='stylesheet' type='text/css' />";
       			$font_family = "font-family: '" . str_replace( '+', ' ', $et_body_font ) . "', Arial, sans-serif !important; ";
       		}
       ```
   
 * WordPress HTTPS is not changing these links, even with ‘Bypass external checks’
   disabled, but these API links work fine on https.

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

 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/external-links-in-theme-googleapiscom-not-changed-to-https/#post-2133609)
 * Hey Vezado,
 * This is being caused by the Regex used to match URL’s in the code. I will have
   this fixed in the next version.
 * Thanks,
    Mvied
 *  Thread Starter [Vezado](https://wordpress.org/support/users/vezado/)
 * (@vezado)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/external-links-in-theme-googleapiscom-not-changed-to-https/#post-2133615)
 * Thanks Mvied! This will reduce the amount of modification needed.
 * Your plugin is very useful and I appreciate you work. Thank you very much.
 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/external-links-in-theme-googleapiscom-not-changed-to-https/#post-2133617)
 * This fix is out in version 1.9. 🙂

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

The topic ‘external links in theme (*.googleapis.com) not changed to https’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-https_bec2c9.svg)
 * [WordPress HTTPS (SSL)](https://wordpress.org/plugins/wordpress-https/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-https/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-https/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-https/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-https/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-https/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [mvied](https://wordpress.org/support/users/mvied/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/external-links-in-theme-googleapiscom-not-changed-to-https/#post-2133617)
 * Status: resolved