Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1320024
    Hanaffan
    Participant

    Dear 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

    #1320027
    Hanaffan
    Participant
    This reply has been marked as private.
    #1320098
    Christopher
    Moderator

    Hi 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.

    #1320238
    Hanaffan
    Participant

    Dear 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

    #1320724
    Rad
    Moderator

    Hi 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!

    #1320726
    Hanaffan
    Participant
    This reply has been marked as private.
    #1320728
    Hanaffan
    Participant

    I 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

    #1320871
    Christopher
    Moderator

    Hi 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.

    #1321139
    Hanaffan
    Participant

    Nope, 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…

    #1321174
    Rupok
    Member

    Hi 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!

    #1328781
    Hanaffan
    Participant

    Ok, it is working now, trying with other fonts and cleaning browsers history….

    Thanks for your support anyway..

    Cheers

    #1328885
    Rahul
    Moderator

    Glad 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.

  • <script> jQuery(function($){ $("#no-reply-1320024 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>