Tagged: x
-
AuthorPosts
-
March 25, 2017 at 2:48 pm #1420228
Hello
I bought a webfont from Typography.com called Whitney. I want to use it on x theme but it’s not showing up. I created a child theme, and inserted this code in the style.css of the child theme
<link rel=”stylesheet” type=”text/css” href=”https://cloud.typography.com/7417576/6093972/css/fonts.css” />
Then I tested it out on the header text on the homepage of my site
http://www.sandbox.helpsocial.com/
I used this code to set the font family
font-family: “Whitney SSm A”, “Whitney SSm B”;font-style: normal;font-weight: 400;
Which was copied from the typography site. The font is not showing up though. It should look like this https://www.twilio.com/
March 25, 2017 at 2:49 pm #1420229This reply has been marked as private.March 26, 2017 at 4:01 am #1420511Hey there,
This code is HTML
<link rel=”stylesheet” type=”text/css” href=”https://cloud.typography.com/7417576/6093972/css/fonts.css” />
so it should not be placed in CSS.
Please contact your font provider to give you the code to insert in CSS or use @import. See https://developer.mozilla.org/en/docs/Web/CSS/@import
You can also enqueue your font. See http://www.wpbeginner.com/wp-tutorials/how-to-properly-add-javascripts-and-styles-in-wordpress/
Thanks.
-
AuthorPosts