Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #386876
    Bassem
    Participant

    Hi,

    Would you please tell me how to add a custom font or a Google font to RTL version only.
    I need the basic LTR version to remain as is.

    Regards,
    Bassem

    #387051
    Christopher
    Moderator

    Hi there,

    Please provide us with URL of RTL version of your site.

    Thanks.

    #387535
    Bassem
    Participant
    This reply has been marked as private.
    #387684
    Rad
    Moderator

    Hi there,

    You can simply add this at your child theme’s style.css

    @import url(http://fonts.googleapis.com/earlyaccess/droidarabickufi.css);

    Because this is a custom font, then this is not directly applied to elements. You should manually apply them, example, let say the headings.

    .rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6, .rtl .h1, .rtl .h2, .rtl .h3, .rtl .h4, .rtl .h5, .rtl .h6 {
        font-family: 'Droid Arabic Kufi', sans-serif !important;
    }
    

    The idea is to add .rtl as prefix for your target class names. Applying the font for other elements should be just the same, but with different class names.

    If you wish to apply it to all elements, then try this.

    .rtl * {
        font-family: 'Droid Arabic Kufi', sans-serif !important;
    }

    Cheers!

    #388002
    Bassem
    Participant

    Thank you so much for the detailed explanation and prompt support “AS USUAL” 🙂

    #388009
    Thai
    Moderator

    You’re most welcome 🙂

    #390485
    Bassem
    Participant
    This reply has been marked as private.
    #390500
    Christopher
    Moderator

    Hi there,

    Please remove the code.
    Find this code :

    .rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6, .rtl .h1, .rtl .h2, .rtl .h3, .rtl .h4, .rtl .h5, .rtl .h6 {
        font-family: 'Droid Arabic Kufi', sans-serif !important;
    }

    And update it to :

    body.rtl, .rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6, .rtl .h1, .rtl .h2, .rtl .h3, .rtl .h4, .rtl .h5, .rtl .h6,.rtl p,.rtl a {
        font-family: 'Droid Arabic Kufi', sans-serif !important;
    }

    Hope it helps.

    #390529
    Bassem
    Participant

    Thanks 🙂

    #390571
    Christopher
    Moderator

    You’re welcome.

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