Tagged: x
-
AuthorPosts
-
September 18, 2016 at 8:47 pm #1180717
datalabsParticipantHi,
I’ve tried to follow the instructions on adding custom fonts as in these threads: https://community.theme.co//forums/topic/custom-font-2/#post-142444 , https://community.theme.co//forums/topic/how-do-i-add-my-own-font-and-use-everywhere/#post-56415 and https://community.theme.co//forums/topic/adding-custom-font-to-theme-customizer/#post-184533
but despite triple checking my code and the paths to my fonts (they are correct), I cannot get the fonts to work, they all fall back to the default font.
Here’s my code, and a link to the site, I’d love to know what I’m doing wrong:
Code from the child-theme’s style.css :
@font-face {
font-family: ‘u8black’;
src: url(‘http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.eot’); /* IE9 Compat Modes */
src: url(‘http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.eot?#iefix’) format(’embedded-opentype’), /* IE6-IE8 */
url(‘http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.woff2’) format(‘woff2’), /* Super Modern Browsers */
url(‘http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.woff’) format(‘woff’), /* Pretty Modern Browsers */
url(‘http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.ttf’) format(‘truetype’), /* Safari, Android, iOS */
url(‘http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.svg#svgFontName’) format(‘svg’); /* Legacy iOS */
}/* Footer */
.x-colophon {
font-family : ‘u8black’;
color: #fff;
}September 18, 2016 at 10:37 pm #1180806
LelyModeratorHi There,
See attached image. There’s an error when you copied the code. Single quote is not recognize. It might be pretty quotes. Update that code to this:
@font-face { font-family: 'u8black'; src: url('http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.eot'); /* IE9 Compat Modes */ src: url('http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.woff2') format('woff2'), /* Super Modern Browsers */ url('http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.woff') format('woff'), /* Pretty Modern Browsers */ url('http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.ttf') format('truetype'), /* Safari, Android, iOS */ url('http://studiosojo.com.au/apra/wp-content/themes/x-child/fonts/U8-Black.svg#svgFontName') format('svg'); /* Legacy iOS */ } /* Footer */ .x-colophon { font-family : 'u8black'; color: #fff; }Hope this helps.
September 19, 2016 at 4:12 am #1181070
datalabsParticipantThanks Lely,
I’ve updated the code as you suggest and made sure that it hasn’t reverted to single quotes but I’m still not able to get the font to function. Any other ideas?
M
September 19, 2016 at 4:21 am #1181074
ChristopherModeratorHi there,
Please update your code to :
.x-colophon .textwidget, .x-colophon h5 { font-family: 'u8black'; color: #fff; }Hope it helps.
September 19, 2016 at 6:07 am #1181200
datalabsParticipantNo, I’m afraid it hasn’t made a difference.
September 19, 2016 at 7:12 am #1181256
ChristianModeratorThis is neither an issue with X nor Cornerstone but your setup. This is due to CORS (see attachment). Please contact your hosting provider to fix the issue. Or, you might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/
Thanks.
September 19, 2016 at 6:52 pm #1182255
datalabsParticipantThat’s interesting. Thanks for helping discover the problem!
September 19, 2016 at 7:13 pm #1182275
NicoModeratorHappy to hear that.
Feel free to ask us again.
Have a great day! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1180717 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
