• Resolved s

    (@sdnazdi)


    hi,

    I uploaded ‘iransansfont’ fonts to ‘blocksy-child/webfonts/’ folder. i used font-face rule
    @font-face {
    font-family: 'IranSans';
    src: url('webfonts/iransans/FaNum/fonts/eot/IRANSansWeb(FaNum).eot');
    src: url('webfonts/iransans/FaNum/fonts/eot/IRANSansWeb(FaNum).eot?#iefix') format('embedded-opentype'),
    url('webfonts/iransans/FaNum/fonts/woff2/IRANSansWeb(FaNum).woff2') format('woff2'),
    url('webfonts/iransans/FaNum/fonts/woff/IRANSansWeb(FaNum).woff') format('woff'),
    url('webfonts/iransans/FaNum/fonts/ttf/IRANSansWeb(FaNum).ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    }

    in rtl.css file as well as
    body, h1, h2, h3, h4, h5, h6, p, a, div, span, input, textarea {
    font-family: IRANSans !important;
    }

    but in some page the font load but in some page not. also when i check for broken link, i received 404 error for @font-face.

    thanks

    • This topic was modified 3 months, 3 weeks ago by s.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @sdnazdi

    I’m really sorry, but as per our support policy, we will not be able to offer direct assistance for debugging custom implementations. If you require such assistance, we recommend contacting a knowledgeable developer.

    One thing that you may want to check out is our very own custom fonts implementation in Blocksy Pro – https://creativethemes.com/blocksy/docs/extensions/custom-fonts/ – which works out of the box with RTL languages and requires no code implementation. Have you given this a look?

    Thanks.

    Thread Starter s

    (@sdnazdi)

    @cteduard, thanks for your reply. i could solve the issue using the following code snippet:

    function load_custom_fonts() {
    wp_enqueue_style('blocksy-child-rtl', get_stylesheet_directory_uri() . '/rtl.css');
    }
    add_action('wp_enqueue_scripts', 'load_custom_fonts');

    however i suggest to redirect the issue to developer team of this elegant theme to avoid such modification by users.

    Hello @sdnazdi

    Glad to hear that. ??

    However, I’m sorry to say, but this is not an issue coming from our theme. We cannot be held responsible for any custom code implementation.

    That’s why we built the Custom Fonts extension. To make sure that people can add custom fonts with no code whatsoever. ??

    Take care!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.