Tagged: x
-
AuthorPosts
-
January 7, 2017 at 5:18 am #1320024
HanaffanParticipantDear X-team,
I am trying to build a multi lingual website which also will be published in Chinese. Therefore I need anything connected to google to be stopped. I found this threat, but it seems to be outdated (https://community.theme.co/forums/topic/chinese-users-cant-access-my-site-need-to-remove-any-and-all-google-refrencing/).
And then as I can not use the google fonts, I would like to upload my own fonts. Sure there is already a few threats here about this topic:https://community.theme.co/forums/topic/custom-font-2/
https://community.theme.co/forums/topic/install-custom-font-step-by-step/
I still do not find any changes on my page even though I tried uploading and using different fonts, it still would not affect my page.
Here is what I wrote in my child-themes style CSS:
@font-face { font-family: ‘KristalyPersonalUse’ !important; src: url(‘http://aicando.org/public_html/wp-content/themes/x-child/fonts/KristalyPersonalUse.eot’); src: url(‘http://aicando.org/public_html/wp-content/themes/x-child/fonts/KristalyPersonalUse.eot?#iefix’) format(’embedded-opentype’), url(‘http://aicando.org/public_html/wp-content/themes/x-child/fonts/KristalyPersonalUse.woff’) format(‘woff’), url(‘http://aicando.org/public_html/wp-content/themes/x-child/fonts/KristalyPersonalUse.woff2’) format(‘woff2’), url(‘http://aicando.org/public_html/wp-content/themes/x-child/fonts/KristalyPersonalUse.ttf’) format(‘truetype’), font-weight: normal; font-style: normal; } entry-title { line-height: 1.4; font-family : ‘KristalyPersonalUse’; } .x-navbar .x-nav-wrap .x-nav > li > a { font-style: normal; font-family: ‘KristalyPersonalUse’; font-weight: 700; text-transform: uppercase; font-size: large; } .rtl.x-navbar-static-active .masthead-stacked .desktop .x-nav>li:not(.x-megamenu) .sub-menu, .rtl.x-navbar-fixed-top-active .masthead-stacked .desktop .x-nav>li:not(.x-megamenu) .sub-menu { left: auto; right: 0; font-family: ‘KristalyPersonalUse’ !important; font-size: large; } .h-custom-headline{ font-family: ‘KristalyPersonalUse’; } .x-img-thumbnail { visibility: hidden; } body { font-family: ‘KristalyPersonalUse’ !important; }Lovely greetings
Marc
January 7, 2017 at 5:23 am #1320027
HanaffanParticipantThis reply has been marked as private.January 7, 2017 at 7:19 am #1320098
ChristopherModeratorHi there,
Upon checking your site, there was no CSS code.
Please add following code in child theme’s style.css file or customizer :@font-face { font-family: 'KristalyPersonalUse' !important; src: url('http://aicando.org/public_html/wp-content/themes/x-child/fonts/KristalyPersonalUse.eot'); src: url('http://aicando.org/public_html/wp-content/themes/x-child/fonts/KristalyPersonalUse.eot?#iefix') format('embedded-opentype'), url('http://aicando.org/public_html/wp-content/themes/x-child/fonts/KristalyPersonalUse.woff') format('woff'), url('http://aicando.org/public_html/wp-content/themes/x-child/fonts/KristalyPersonalUse.woff2') format('woff2'), url('http://aicando.org/public_html/wp-content/themes/x-child/fonts/KristalyPersonalUse.ttf') format('truetype'), font-weight: normal; font-style: normal; } .entry-title { line-height: 1.4; font-family : 'KristalyPersonalUse'; } .x-navbar .x-nav-wrap .x-nav > li > a { font-style: normal; font-family: 'KristalyPersonalUse'; font-weight: 700; text-transform: uppercase; font-size: large; } .rtl.x-navbar-static-active .masthead-stacked .desktop .x-nav>li:not(.x-megamenu) .sub-menu, .rtl.x-navbar-fixed-top-active .masthead-stacked .desktop .x-nav>li:not(.x-megamenu) .sub-menu { left: auto; right: 0; font-family: 'KristalyPersonalUse' !important; font-size: large; } .h-custom-headline{ font-family: 'KristalyPersonalUse'; } .x-img-thumbnail { visibility: hidden; } body { font-family: 'KristalyPersonalUse' !important; }Hope it helps.
January 7, 2017 at 10:49 am #1320238
HanaffanParticipantDear X team
it is the style css where I wrote it already but it did not have any effect, that is why i am asking here….
and what about the google issue?
Lovely greetings,
Marc
January 7, 2017 at 9:40 pm #1320724
RadModeratorHi Marc,
Would you mind providing your FTP login credentials?
For the meantime, please correct your CSS to this
@font-face { font-family: 'KristalyPersonalUse'; src: url('http://aicando.org/wp-content/themes/x-child/fonts/KristalyPersonalUse.eot'); src: url('http://aicando.org/wp-content/themes/x-child/fonts/KristalyPersonalUse.eot?#iefix') format('embedded-opentype'), url('http://aicando.org/wp-content/themes/x-child/fonts/KristalyPersonalUse.woff') format('woff'), url('http://aicando.org/wp-content/themes/x-child/fonts/KristalyPersonalUse.woff2') format('woff2'), url('http://aicando.org/wp-content/themes/x-child/fonts/KristalyPersonalUse.ttf') format('truetype'), font-weight: normal; font-style: normal; } .entry-title { line-height: 1.4; font-family : 'KristalyPersonalUse' !important; } .x-navbar .x-nav-wrap .x-nav > li > a { font-style: normal; font-family: 'KristalyPersonalUse' !important; font-weight: 700; text-transform: uppercase; font-size: large; } .rtl.x-navbar-static-active .masthead-stacked .desktop .x-nav>li:not(.x-megamenu) .sub-menu, .rtl.x-navbar-fixed-top-active .masthead-stacked .desktop .x-nav>li:not(.x-megamenu) .sub-menu { left: auto; right: 0; font-family: 'KristalyPersonalUse' !important; font-size: large; } .h-custom-headline{ font-family: 'KristalyPersonalUse' !important; } .x-img-thumbnail { visibility: hidden; } body { font-family: 'KristalyPersonalUse' !important; }Thanks!
January 7, 2017 at 9:50 pm #1320726
HanaffanParticipantThis reply has been marked as private.January 7, 2017 at 9:59 pm #1320728
HanaffanParticipantI copied you code but still no change… Thanks for the try…
Would be great if custom fonts could be added from customizer.I hope the credentials above are enough for you to enter ftp server as I could not upload the verification file…
Lovely greetings,
Marc
January 8, 2017 at 2:33 am #1320871
ChristopherModeratorHi there,
Everything seems to be setup fine.
If it’s Chinese font, then add some Chinese content to see if it works or not.
Also since you are using cache plugin, please disable it.Would be great if custom fonts could be added from customizer.
Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.
Hope it helps.
January 8, 2017 at 9:49 am #1321139
HanaffanParticipantNope, I do not have any cache plugin running and the fonts I used are not chinese… though sure I would like to add Chinese fonts in the future, but before that I want to make sure that I am able to add custom fonts in general, but none of the fonts I uploaded to the child theme font directory are working till now…
January 8, 2017 at 10:47 am #1321174
RupokMemberHi there,
Thanks for writing back. The working example is already given for custom fonts. If you fonts are correct and you add the code properly, it should work fine. There is nothing wrong with the code, so check you are doing it correctly.
Cheers!
January 13, 2017 at 8:43 am #1328781
HanaffanParticipantOk, it is working now, trying with other fonts and cleaning browsers history….
Thanks for your support anyway..
Cheers
January 13, 2017 at 10:11 am #1328885
RahulModeratorGlad we were able to help you out.
If you have anything further to ask, kindly let us know. We’d be happy to assist you with anything.
Thanks for using the X-theme.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1320024 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
