-
AuthorPosts
-
September 12, 2015 at 3:48 pm #386876
BassemParticipantHi,
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,
BassemSeptember 13, 2015 at 12:21 am #387051
ChristopherModeratorHi there,
Please provide us with URL of RTL version of your site.
Thanks.
September 13, 2015 at 4:42 pm #387535
BassemParticipantThis reply has been marked as private.September 13, 2015 at 10:09 pm #387684
RadModeratorHi 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!
September 14, 2015 at 5:49 am #388002
BassemParticipantThank you so much for the detailed explanation and prompt support “AS USUAL” 🙂
September 14, 2015 at 6:04 am #388009
ThaiModeratorYou’re most welcome 🙂
September 16, 2015 at 6:22 am #390485
BassemParticipantThis reply has been marked as private.September 16, 2015 at 6:41 am #390500
ChristopherModeratorHi 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.
September 16, 2015 at 7:20 am #390529
BassemParticipantThanks 🙂
September 16, 2015 at 8:00 am #390571
ChristopherModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-386876 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
