Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › Incorporating TypeKit
New Landing › How can we help? › Cardinal › Incorporating TypeKit
- This topic has 20 replies, 2 voices, and was last updated 10 years by Swift Ideas – Ed.
-
Posted in: Cardinal
-
July 4, 2014 at 12:00 pm #88080
Hello and thank you for this wickedly-awesome theme. I’m just wondering what would be the best way to go about incorporating Adobe TypeKit? I’m trying to find a way that doesn’t include massive custom CSS changes.
The way I’ve done it with other themes, is to add the TypeKit javascript to the custom CSS/Javascript area, then added the option to select said font from the drop down menus. However, this is kicking my butt and I can’t figure it out.
Any help or “pointage” in the right direction would be greatly appreciated.
Thanks!
July 4, 2014 at 12:09 pm #88087Hi there, thanks for the kind words!
This is something that I would have liked to support out-the-box, but unfortunately it isn’t possible with Redux as of yet.
Give me a couple hours to set aside some time to test out a few solutions, then I’ll write up a quick guide on the best method that I’ve found, and to ensure you can set the font correctly for the different body/menu/heading fonts etc.
Will get back to you shortly.
Thanks,
– Ed
July 4, 2014 at 12:12 pm #88090Ed โ You’re my new best friend!
I normally wait to add ratings on ThemeForest, but five stars coming your way.
Thank you!
July 4, 2014 at 2:05 pm #88142Thanks JMB, appreciate it ๐
Just successfully set up TypeKit on one of our test sites, and working very nicely. Will write up the guide now and drop you a link for it.
This plugin seems to be the easiest solution, https://wordpress.org/plugins/typekit-fonts-for-wordpress/
The guide will provide all the CSS selectors that the standard font options uses, so that you can override these, plus keep the Custom CSS separate to the theme options css.
– Ed
July 4, 2014 at 2:09 pm #88143Awesomeness! I’m familiar with the above plugin and have used it before. Thank you for your help!
July 4, 2014 at 2:42 pm #88153Here you go! http://cardinal.swiftideas.com/documentation/2014/07/04/using-typekit-fonts/
Let me know if you have any questions, or if there is anything you think I should add.
Thanks!
– Ed
July 4, 2014 at 2:44 pm #88155Testing it out now. I’ll follow up once I’ve gone through the process.
Again, thank you!
-Michael
July 4, 2014 at 3:06 pm #88158Ed โ
Just to follow up … your walk-thru works perfectly. However, instead of using the plugin, I’m using the child theme.
The only issue that I’m running in to is that on page load it initially displays the fallback font and then converts to the TypeKit font. I’ve tried both with the plugin and the child theme with the same results for both.
I’m guessing it has to do with the order of the JavaScript loading.
Hmm … time to dig in.
Thank you for the support and quick turn around!
-Michael
July 4, 2014 at 3:15 pm #88162Hi Michael,
Ahh yes – that’s completely possible to use the child theme, just think most users would probably prefer a plugin as not all use a child theme.
That’s odd about the flash of text.. Testing here and I can’t replicate it at all, might be down to the hosting.
Do you have the fonts set to google fonts in the Font Options, or standard fonts?
– Ed
July 4, 2014 at 3:26 pm #88169I use synthesis as my web host and hadn’t had an issue with TypeKit and the previous theme.
I’ve tried both options in Font Options with the same result. But here’s the weird part, I get the flash of text in both Firefox and Chrome, but not Safari.
Scratching my head here.
July 4, 2014 at 3:37 pm #88171This reply has been marked as private.July 4, 2014 at 4:15 pm #88178This reply has been marked as private.July 4, 2014 at 5:27 pm #88187Wow, that isn’t even a slight flicker. The font seems to be loading a good 3-4 seconds after the page..
I’ve noticed you have LayerSlider + RevSlider installed? Is that intentional? Might be worth disabling a few to see if anything is conflicting.
Happy to help ๐
– Ed
July 4, 2014 at 5:36 pm #88188Disabled both LayerSlider and RevSlider with same results. Disabled all plugins … same results. Hmm …
July 4, 2014 at 8:52 pm #88209I think it may be caching (like you said).. Can’t seem to see any other possibility. Are you running CloudFlare?
– Ed
-
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.