Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1177955

    koosang153
    Participant

    Hi, I made this website,

    http://www.mnkpr.com

    As you see the bottom part, I have some Korean headlines and contents in Korean.
    For the Korean part, I would like to apply ‘Spoqa Han Sans’ instead of Default PT sans that I set from Xtheme.

    According to Spoqa Han Sans website, it says to apply this font, I need to type
    @import url(//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSans-kr.css); under style sheet
    and put * { font-family: ‘Spoqa Han Sans’, ‘Spoqa Han Sans JP’, ‘Sans-serif’; } under style tag.

    I tried to do it from custom CSS part in x theme cornerstone..but it didn’t work and I am lost.
    Please help me to solve this issue!! I hope there is easiest way to do it.

    THANK YOU IN ADVANCE.
    EM.

    #1178327

    Nabeel A
    Moderator

    Hi there,

    Thanks for writing in! Please add the following CSS in your child theme’s style.css file instead of your Customizer:

    @import url(//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSans-kr.css);
    
    .x-colophon.bottom .x-colophon-content p {
        font-family: "Spoqa Han Sans", "Spoqa Han Sans JP", "Sans-serif" !important;
    }

    Let us know how this goes!

    #1179026

    koosang153
    Participant

    What if I didn’t use the X child theme?
    I just used x theme. instead of child theme.

    #1179155

    Rue Nel
    Moderator

    Hello There,

    I would not recommend doing that. What you are trying to accomplish requires a template customization, which is why we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    After the child theme is set up, please add the following code in your child theme’s style.css file

    @import url(//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSans-kr.css);
    
    .x-colophon.bottom .x-colophon-content p {
        font-family: "Spoqa Han Sans", "Spoqa Han Sans JP", "Sans-serif" !important;
    }

    Hope this explains it.

    #1179414

    koosang153
    Participant
    This reply has been marked as private.
    #1179764

    Rue Nel
    Moderator

    Hello There,

    Thank you for the updates! The code actually works but it is applied in the footer content.
    http://prntscr.com/cj9iog

    If you want to include the single blog post contents, please update the code and add the following css code in the customizer, Appearance > Customize > Custom > CSS

    @import url(//spoqa.github.io/spoqa-han-sans/css/SpoqaHanSans-kr.css);
    
    .single-post .site .entry-header,
    .single-post .site .entry-content,
    .site .x-colophon.bottom .x-colophon-content p {
        font-family: "Spoqa Han Sans", "Spoqa Han Sans JP", "Sans-serif" !important;
    }

    And since you have installed a caching plugin WP Fastest Cache and WordFence, please clear your plugin cache before testing your site. This can cause the changes to not take place on the front end. It will eventually show up when the cache regenerates, but it’s not ideal if you’re looking to see your changes immediately. Caching plugins are best to turn on only when you’ve finished building the site.

    Hope this helps. Please let us know how it goes.

    #1180846

    koosang153
    Participant

    Thanx for help!

    I followed your suggestion, and now it works, the posts with Koreans are now looking great with Spoqa han sans! But titles are still in PT sans.

    What if I want Spoqa Han Sans to be applied on title or headlines on mainpage (if it’s in Korean)?
    (REAL PR STORY)웃음이 가득한 민컴 <- This headline can be found in main page http://www.mnkpr.com
    and whole headline is in PT sans even though there is 웃음이 가득한 민컴 written in Korean,
    I want Korean to be Spoqa HAn Sans, and other English part always in PT sans.
    What should I do?

    #1180850

    Christopher
    Moderator

    Hi there,

    Please add this code :

    .category-real-pr-story h3.h-recent-posts {
        font-family: "Spoqa Han Sans", "Spoqa Han Sans JP", "Sans-serif" !important;
    }

    Hope it helps.

    #1180894

    koosang153
    Participant

    It worked!!!

    Thank you so much!!!

    #1180901

    koosang153
    Participant

    One last TWO questions!!!

    1…

    http://mnkpr.com/mnk-real-pr-story-11/

    if you go there, it’s one of posts, the body texts are looking perfect with spoqa sans, but
    [Real PR Story] 팀워크 빌딩을 위한 각자의 역할
    the title is still in PT sans. What should I do?

    2…
    And the sidebar has all the list of [REAL PR STORY] and all has some Korean texts, and they need to be replaced to Spoqa han sans as well..

    Thanx in millions in advance!

    #1180907

    Christopher
    Moderator

    Hi there,

    Please add this code :

    h1.entry-title,aside.x-sidebar.nano.has-scrollbar li a {
        font-family: "Spoqa Han Sans", "Spoqa Han Sans JP", "Sans-serif";
    }

    Hope it helps.

    #1190503

    koosang153
    Participant
    This reply has been marked as private.
    #1190511

    Christopher
    Moderator

    Hi there,

    Provided credentials didn’t work, please check.

    Thanks.

    #1190539

    koosang153
    Participant
    This reply has been marked as private.
    #1190554

    Christopher
    Moderator

    Hi there,

    The font is loading fine, please see the attachment.
    Please provide us with more information like which code is not working fine and where we can see the issue.

    Thanks.