{"id":6983823,"date":"2016-01-25T06:30:07","date_gmt":"2016-01-25T06:30:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/change-default-font-4\/"},"modified":"2016-08-31T00:50:46","modified_gmt":"2016-08-31T00:50:46","slug":"change-default-font-4","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/change-default-font-4\/","title":{"rendered":"Change default font."},"content":{"rendered":"<p>Hi,<br \/>\nI&#8217;m using to plugin to translate my website to Urdu language and it works absolutely perfect, so much better than WPML. However, I would like to change the default font for Urdu language only. I added the following function to my theme&#8217;s functions.php:<\/p>\n<p>function load_urdu_style()<br \/>\n{<br \/>\nif ( \u2018ur\u2019 == WPGlobus::Config()-&gt;language ) {<br \/>\nwp_register_style( &#8216;urdu-style&#8217;, get_template_directory_uri() . &#8216;\/css\/urdu.css&#8217;, array(), &#8216;20120208&#8217;, &#8216;all&#8217;  );<br \/>\nwp_enqueue_style( &#8216;urdu-style&#8217; );<br \/>\n}<br \/>\n}<br \/>\nadd_action( &#8216;wp_enqueue_scripts&#8217;, &#8216;load_urdu_style&#8217; );<\/p>\n<p>My css file looks like this:<\/p>\n<p>@font-face {<br \/>\n    font-family: urdu;<br \/>\n    src: url(Jameel.ttf);<br \/>\n}<\/p>\n<p>body, p, a, h1, h2, h3, h4, h5, li, ol {<br \/>\nfont-family:urdu;<br \/>\nfont-size:16px;<br \/>\n}<\/p>\n<p>I added Jameel.ttf in the same directory as the CSS file. <\/p>\n<p>This does not seem to work.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wpglobus\/<\/p>\n","protected":false},"template":"","class_list":["post-6983823","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6983823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6983823\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6983823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}