Tagged: x
-
AuthorPosts
-
August 26, 2016 at 3:03 am #1147919
freipartnerParticipantHi there
I used the @font-face function to import my custom fonts. It works finde for most of the text.
The “p” tag is displayed wrong in Cornerstone and on the website itself. The strange thing is that it looks correct when I’m in the customizer. I attached two screenshots to my post. The wrong font is only in the blog posts and custom pages. On the homepage it’s displayed the right way.The Cornerstone version is 1.3. and the wordpress version 4.6.
URL: http://2017.starsintown.ch/Wrong font inside of ‘News’ and ‘Young Talents’
Do you have any idea what could be the problem?
Best, Christian
August 26, 2016 at 3:24 am #1147934
Paul RModeratorHi,
Please use absolute urls to your fontface code
eg.
@font-face { font-family: 'Geogrotesque-Medium'; src: url('http://2017.starsintown.ch/wp-content/themes/x-child/fonts/Geogrotesque-Medium.otf'); } @font-face { font-family: 'Geogtq-Rg'; src: url('http://2017.starsintown.ch/wp-content/themes/x-child/fonts/Geogtq-Rg.otf'); }You also need to convert your font to eot, woff2, woff,ttf svg to ensure browser compatibility.
For more information, kindly refer to the links below.
https://community.theme.co/forums/topic/how-do-i-change-font-in-theme-x/#post-248442
https://css-tricks.com/snippets/css/using-font-face/Hope that helps.
August 26, 2016 at 4:44 am #1148005
freipartnerParticipantGreat, that helped a lot!
Thank you for your help.
August 26, 2016 at 6:03 am #1148056
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1147919 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
