Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1336271
    koosang153
    Participant

    Hello, I would like to change the post title font

    There are mixed English, Korean, Chinese in title.

    If it’s English I would like to apply “Playfair Display” as font
    If it’s Korean, I would like to apply “NotoSansKR, “Noto Sans CJK KR”, Noto Sans Korean, “Malgun Gothic”
    If it’s Chinese, I would like to apply “fzdabiaosong-b06s”, “微软雅黑”, “宋体”, SimSun, STXihei

    #1336272
    koosang153
    Participant
    This reply has been marked as private.
    #1336300
    Rupok
    Member

    Hi there,

    Thanks for writing in! It seems your website is under construction. Please take it off or provide us the credentials in private reply so that we can check and assist you on this.

    However if you have multiple language within same title then it would be tough to change the font family for each word individually. You can try wrapping the parts with span tag with classes and then use CSS to set font for the classes.

    Thanks!

    #1336314
    koosang153
    Participant
    This reply has been marked as private.
    #1336321
    Friech
    Moderator

    Hi There,

    Thanks for the credentials, regretfully this will require a custom development, and would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding.

    #1336350
    koosang153
    Participant

    Okay, then can I ask simple question?

    Just to change the font for post title, how should I code then?

    h1 {
    font-family: “Playfair Display”, NotoSansKR, “Noto Sans CJK KR”, Noto Sans Korean, ;
    letter-spacing: -0.03em;
    }

    I put this in the custom css section, and it didn’t work.
    Can you point out what part is wrong?

    Please advise.

    Thank you!!

    #1336365
    Friech
    Moderator

    Hi There,

    Yeah that is the easy part, please update your code to this:

    h1.entry-title {
      font-family: "Playfair Display", NotoSansKR, "Noto Sans CJK KR", "Noto Sans Korean";
      letter-spacing: -0.03em;
    }

    The custom part on your original request is, the site should determine what language it was viewed.

    Thanks.

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