Last active
December 5, 2023 02:11
-
-
Save zakariabinsaifullah/2e5c0dd15a133a1e9df32abaa477cd23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!empty($gfonts)) { | |
$font_array = explode('|', $gfonts); | |
foreach ($font_array as $font) { | |
if (empty($font)) { | |
continue; | |
} | |
$query_args = ['family' => $font]; | |
$font_handle = 'gutsliders-font-' . sanitize_title($font); | |
wp_register_style( | |
$font_handle, | |
add_query_arg($query_args, '//fonts.googleapis.com/css'), | |
[], | |
GUTSLIDER_VERSION, | |
'all' | |
); | |
wp_enqueue_style($font_handle); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment