Title: Loading Google Fonts
Last modified: August 17, 2017

---

# Loading Google Fonts

 *  [alexwbaumann](https://wordpress.org/support/users/alexwbaumann/)
 * (@alexwbaumann)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/loading-google-fonts/)
 * Lines 121 & 123 of the wp-back-button.php file register the styles to enqueue
   the google fonts. Because they are coded as http:// if the site is setup on https://
   the browser may not load the scripts or label the reference to the CSS as unsafe.
 * Ideally this would load over http and https without any issues and based on how
   the site was requested.
 * If changed to:
    wp_register_style( ‘googleFonts1’, ‘//fonts.googleapis.com/css?
   family=Cabin:400,500,600,bold’); wp_register_style( ‘googleFonts2’, ‘//fonts.
   googleapis.com/css?family=PT+Sans+Narrow:regular,bold’);
 * This way the protocol will be inherited from how the site was loaded instead 
   of always being http.

Viewing 1 replies (of 1 total)

 *  Plugin Author [pwron](https://wordpress.org/support/users/pwron/)
 * (@pwron)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/loading-google-fonts/#post-9465850)
 * Thx [@alexwbaumann](https://wordpress.org/support/users/alexwbaumann/), in the
   next update I will correct it.

Viewing 1 replies (of 1 total)

The topic ‘Loading Google Fonts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-back-button_fdfdfd.svg)
 * [WP Back Button](https://wordpress.org/plugins/wp-back-button/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-back-button/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-back-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-back-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-back-button/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [pwron](https://wordpress.org/support/users/pwron/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/loading-google-fonts/#post-9465850)
 * Status: not resolved