Home Forums Themes Support Claue Font Help

Viewing 3 reply threads
  • Author
    Posts
    • #30355

      Hi Harry,

      I have my own font family which is called IranSans and is working fine on my front-end.

      For the admin area, I have made a css file named admin_style_custom.css and added this function to my functions.php of the child theme:

      /* Custom Style for WP admin area*/
      function wpadmin_style_custom() {
      echo '<link rel="stylesheet" href="https://look.ir/wp-content/themes/claue-child/admin_style_custom.css" type="text/css" media="all" />';
      }
      add_action('admin_head', 'wpadmin_style_custom');

      so I can change the style of the dashboard which is working fine.

      I have applied my font which is IranSans via this code in the css file:

      /* Font for admin area */
      .rtl *,.rtl #adminmenuwrap *,.rtl #wpadminbar * {
      font-family: "IRANSans" !important;
      }

      the font is applied in everywhere of the dashboard with no issue.

      But after this some font awesome icons looks as a square in the dashboard.

      http://prntscr.com/nbop72

      http://prntscr.com/nbopbk

      How can I fix this?

      I really need your help.

      I found the font awesome CDN which says add it to <head> of the html file but I don’t know who to do it for the dashboard or is there any other solution for me?

      Kind regards.

      Rahim Vaziri
      CEO & Founder at Look.ir

    • #30356

      Hi,

      Please check your CSS code for admin, your code applied for all elements

      /* Font for admin area */
      .rtl *,.rtl #adminmenuwrap *,.rtl #wpadminbar * {
      font-family: "IRANSans" !important;
      }

      Inspect element and add css for only text element.

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #30358

      Hi Harry,

      How can I apply it only for the texts?

       

      Rahim Vaziri
      CEO & Founder at Look.ir

    • #30360

      Hi Rahim,

      Please try this plugin https://wordpress.org/plugins/admin-custom-font/ or just use css code

      body {font-family: "IRANSans" !important;}

      Kind regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 3 reply threads

You must be logged in to reply to this topic.