Tagged: x
-
AuthorPosts
-
January 30, 2017 at 7:16 am #1350657
CyrodilParticipantI have a major issue with font-family :
I followed all advice from this forum to add my own font but without success…I created a folder in http://mywebsite.com/wp-content/themes/x/x-child/fonts
I created also a folder in http://mywebsite.com/wp-content/fonts just to try.I add in custom -> EDIT GLOBAL CSS all the lines :
@font-face {
font-family: ‘MyFirstFont’;
src: url(‘http://mywebsite.com/wp-content/themes/x/x-child/fonts/GothamRounded-Book.eot’);
src: url(‘http://mywebsite.com/wp-content/themes/x/x-child/fonts/GothamRounded-Book.woff’) format(‘woff’),
url(‘http://mywebsite.com/wp-content/themes/x/x-child/fonts/GothamRounded-Book.ttf’) format(‘truetype’),
url(‘http://mywebsite.com/wp-content/themes/x/x-child/fonts/GothamRounded-Book.svg’) format(‘svg’);}
then in CSS additionnal :
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .post-title, .widgettitle, body, input, button, select, textarea{font-family: ‘MyFirstFont’, Fallback, sans-serif;
}
body {
font-family: ‘MyFirstFont’, Fallback, sans-serif;
}But the result is the same. I have the OPEN SANS as font family……….
Please : help me
January 30, 2017 at 7:31 am #1350674
Paul RModeratorHi,
Please follow instructions on the link below.
https://community.theme.co/forums/topic/how-do-i-change-font-in-theme-x/#post-248442
Hope that helps.
January 30, 2017 at 8:50 am #1350817
CyrodilParticipantok, I found the issue : I had to add body { font-family : “myfont”} directly in the custom -> EDIT GLOBAL CSS.
You have 2 area where we can modify the css code. But only one have an effect on the template…
Thanks for your help !
January 30, 2017 at 9:38 am #1350897
RahulModeratorGlad you’ve sorted it out for yourself.
Let us know if we can help with anything else.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1350657 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
