Tagged: x
-
AuthorPosts
-
October 10, 2016 at 1:16 pm #1210282
rok1975ParticipantHi,
i installed the Typekit-Extension comming with the x-theme.
Then i created a kit and inserted the kit-id. All works fine.Now i wanted to activate the font in the customizer. But there is no typekit “Source Serif Pro”.
The attached Screenshot shows the Bodyfont-Menu, and i guess whats here “source serif pro (google)” should be “source serif pro (Typekit)”.If i tried a different kit, all working fine.
I think there is a conflict between google font and Typekit.
I want use the typekit version because there is the font-weight “light” and i need it for my design.
Any suggestions?
Best
TobiOctober 10, 2016 at 4:29 pm #1210516
Nabeel AModeratorHi Tobi,
Thanks for writing in! Please try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.
October 11, 2016 at 2:54 am #1211075
rok1975ParticipantThanks for the fast reply.
I read a thread about deactivating before here in the forum. But i have only cornerstone, revolution slider and your typekit plugin installed. Deactivating Revslider the Problem still exits.
Any other ideas. Its dubious because all other typkit kits and fonts work.
Tobi
October 11, 2016 at 6:17 am #1211277
ChristianModeratorHey Tobi,
Would you mind giving us access to your WordPress admin and Typekit account?
Thanks.
October 12, 2016 at 4:19 am #1212680
rok1975ParticipantThis reply has been marked as private.October 12, 2016 at 11:10 am #1213136
JadeModeratorHi Tobi,
You seem to have missed posting the URL of your site.
Kindly provide your site link so that we could check further.
Thank you.
October 12, 2016 at 11:24 am #1213153
rok1975ParticipantThis reply has been marked as private.October 12, 2016 at 8:25 pm #1213868
RadModeratorHi there,
Both Google font and Typekit font are combined in one selection dropdown. What’s on your screenshot is correct.
I checked it and the fonts are correctly downloaded from Typekit Server. Example, https://use.typekit.net/af/d5bca9/00000000000000000001565a/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n3
I also compared the font from your site and it’s the same here
https://www.fontsquirrel.com/fonts/source-serif-pro
Except that, bolder and black versions aren’t included since it’s configured for 200, 300, 400, 700. And since 400 is the regular weight that means 200 is nothing.
Thanks!
October 15, 2016 at 10:02 am #1217360
rok1975ParticipantHi,
thanks. But whats with the light and extra light weight?
If 400 is regular. 300 should be light, and 200 extra light.
In the typekit menu 200, 300 are loaded (typekit-extension.png)
But dont appear in the customizer (customizer-fonts.png)Maybe i undestood you wrong.
Best
TobiOctober 16, 2016 at 6:53 am #1218063
RadModeratorHi there,
It looks like it’s picking up the Source Serif Pro from google fonts and not from Typekit.
https://fonts.google.com/specimen/Source+Serif+Pro?selection.family=Source+Sans+Pro
Because of the same name, there could be a conflict between the two. I’ll continue checking it. For the meantime, you can manually embed the code through @import.
Eg. Add this code to your child theme’s functions.php
add_action('wp_head', 'source_serif_font', 99999); function source_serif_font () { ?> <style> @import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i'); </style> <?php }Then apply font weight to your elements through CSS.
Thanks!
October 18, 2016 at 1:16 pm #1221148
rok1975ParticipantThanks!
October 18, 2016 at 1:32 pm #1221182
rok1975ParticipantOkay i tried it, but only the regular, semi-bold and bold are working correctly.
October 18, 2016 at 5:27 pm #1221427
JadeModeratorGlad to hear that.
Cheers!
October 20, 2016 at 2:00 am #1223471
rok1975ParticipantHey Jade,
sorry buts not working. Only the regular, semi-bold and bold are working correctly. All other font-weights are not showing correctly. With your code provided above the font-weights are loaded but if i tried to apply “font-weight:200;” nothing will happen. I guess these font-weights are not provided by google.
Thats why i want to use typekit from adobe, because the support these font-weights.
Best
TobiOctober 20, 2016 at 3:26 am #1223563
RadModeratorHi there,
The above code is a temporary solution and it will not add up the missing font weight through CSS but not in customizer. You’ll have to manually apply font weight through CSS,
Example,
h1 { font-weight: 200; }For the meantime, maybe we can solve it this way. Please edit this file,
wp-content\plugins\x-typekit\functions\output.php
and change this code
function x_typekit_filter_kit_data_into_x( $data ) { require( X_TYPEKIT_PATH . '/functions/options.php' ); if ( isset( $x_typekit_enable ) && $x_typekit_enable == 1 ) { $output = array_merge( $x_typekit_request, $data ); } else { $output = $data; } return $output; }to this
function x_typekit_filter_kit_data_into_x( $data ) { require( X_TYPEKIT_PATH . '/functions/options.php' ); if ( isset( $x_typekit_enable ) && $x_typekit_enable == 1 ) { $output = $x_typekit_request; } else { $output = $data; } return $output; }It will remove all the google fonts, and will prevent conflict between the same font from both Typekit and Google font.
Then install transient cleaner plugin to clear internal caches.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1210282 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
