Tagged: x
-
AuthorPosts
-
April 5, 2016 at 4:50 am #867388
powrider686
ParticipantHello,
I need to change all of the fonts on my page to the Papyrus font. I have downloaded the font. How can I install it into wordpress and x theme?Thank you!
April 5, 2016 at 4:51 am #867389powrider686
ParticipantThis reply has been marked as private.April 5, 2016 at 1:04 pm #867983Rupok
MemberHi there,
Thanks for writing in! Please follow this example here at this URL (http://theme.co/x/member/forums/topic/how-do-i-add-my-own-font-and-use-everywhere/#post-56415).
Thanks!
April 5, 2016 at 4:18 pm #868202powrider686
ParticipantHi,
Thanks for the link.It would be great if you guys could make a generic walkthrough, because it can be quite confusing to parse out different sites, and the source code is different on different support threads.
Can you clarify if I have it right? And I’m not quite sure where to put the first css code. Is that within the style.css file accessed via ftp? Then I add the CSS for child theme into the global css box within the customizer correct?
Child Theme style.css
@font-face {
font-family: ‘PAPYRUS’;
src: url(‘http://moeinc.us/wp-content/themes/x-child/fonts/PAPYRUS.eot’) format(‘eot’);
url(‘http://moeinc.us/wp-content/themes/x-child/fonts/PAPYRUS.woff’) format(‘woff’),
url(‘http://moeinc.us/wp-content/themes/x-child/fonts/PAPYRUS.ttf’) format(‘truetype’),
url(‘http://moeinc.us/wp-content/themes/x-child/fonts/PAPYRUS.svg’) format(‘svg’);Css for Child Theme
/* all links */
a {
font-family : ‘PAPYRUS’;
}.x-topbar {
font-family : ‘PAPYRUS’;
}.x-logobar {
font-family : ‘PAPYRUS’;
}/* menu links */
.x-navbar ul li a{
font-family : ‘PAPYRUS’;
}/* logo */
.x-brand {
font-family : ‘PAPYRUS’;
}/* Main content */
.x-main {
font-family : ‘PAPYRUS’;
}/* Sidebar */
.x-sidebar {
font-family : ‘PAPYRUS’;
}/* Footer */
.x-colophon {
font-family : ‘PAPYRUS’;
}Thank you!
April 5, 2016 at 4:25 pm #868211powrider686
ParticipantThe only text that changed was the Page Title in the upper left of the page. All of the other text has remained the same.
Can you help?
April 6, 2016 at 5:22 am #868944Christian
ModeratorHey there,
You have a syntax error. The closing } is missing in @font-face. It should be
@font-face { /* CSS Code */ }
You should add the code in Appearance > Customize > Custom > Global CSS.
Thanks.
April 7, 2016 at 2:08 am #870680powrider686
ParticipantGot it. Thanks for catching that and the help.
April 7, 2016 at 6:37 am #870977Zeshan
MemberYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-867388 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>