Home Forums WoodMart support forum Typekit Kit ID ' custom font

Typekit Kit ID ' custom font

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #137059

    a1waqas
    Participant

    hi, I am totally not aware how to add custom font in the theme to apply.
    I would like to apply Tajawal font on my website overall.

    please guide how to add this font ‘TAJAWAL, sans-serif’ into my website.

    thanks

    #137074

    Hello,

    Please read this manual and follow the instructions to add a custom font to your site: https://xtemos.com/docs/woodmart/faq-guides/upload-custom-fonts/

    Best Regards

    #137103

    a1waqas
    Participant

    I m going to install a custom font, but receiving this error.
    tajawal-v3-latin-regular.woff2
    Sorry, this file type is not permitted for security reasons.

    please help…

    #137108

    Hello,

    1. Add this line to the wp-config.php file: define( ‘ALLOW_UNFILTERED_UPLOADS’, true );

    2. Upload all files formats

    3. Remove this line from wp-config.php file

    Best Regards

    #137115

    a1waqas
    Participant

    hi, I followed your words and added the command but still getting the same error.

    #137154

    Hello,

    Please add this code to the functions.php of the child theme

    add_filter( 'upload_mimes', 'woodmart_upload_mimes', 100, 1 );
        function woodmart_upload_mimes( $mimes ) {
            if ( woodmart_get_opt( 'allow_upload_svg' ) ) {
                $mimes['svg'] = 'image/svg+xml';
                $mimes['svgz'] = 'image/svg+xml';
            }
            $mimes['woff'] = 'application/x-font-woff';
            $mimes['woff2'] = 'application/x-font-woff2';
            $mimes['ttf'] = 'application/x-font-ttf';
            $mimes['eot'] = 'application/vnd.ms-fontobject';
            return $mimes;
        }

    Best Regards

    #137395

    a1waqas
    Participant

    hi, I did the steps you advised, everything is able to upload but only svg file is showing same error when I upload.
    please help me out from the issue.

    thanks

    #137430

    Hello,

    Please install and activate this plugin https://wordpress.org/plugins/safe-svg/ and try again.

    Best Regards

    #137436

    a1waqas
    Participant

    Hi,
    It’s ALREADY INSTALLED. Can you handle it if i provide login details to you?

    Thanks

    #137445

    Hello,

    Please provide the site admin access to the private area.

    Best Regards

    #137451

    a1waqas
    Participant

    hi here are the details

    #137531

    a1waqas
    Participant

    Reminder

    #137587

    Hello,

    In order to test I have tried to upload SVG file, I have uploaded with no problems https://gyazo.com/cbc7a647a5e9bc66c4e167aae7934da0

    The problem mаy be caused by thе file you are trying to upload.

    Best Regards

    #137593

    a1waqas
    Participant

    hi, thanks for the support, attached is the svg extension file which is a part of the font, I downloaded it from google font, it shows me an error.

    kindly check it at your end.

    #137618

    Hello,

    Please provide the file you have not attached.

    Best Regards

    #137742

    a1waqas
    Participant

    hi, the attached file is downloaded from google fonts officially. there are five files, four of them are uploaded but only file name “tajawal-v3-latin-regular.svg” is unable to upload. please check it and let me know that you already have access to my account.

    thanks

    Attachments:
    You must be logged in to view attached files.
    #137923

    Artem Temos
    Keymaster

    Your SVG file is broken and that is why your server doesn’t accept. Try to use another font. And don’t forget to use the code from the first message.

    #137925

    a1waqas
    Participant

    hi,
    well noted with thanks for your precious time and consideration.

    #137934

    Artem Temos
    Keymaster

    You are welcome.

Viewing 19 posts - 1 through 19 (of 19 total)

The topic ‘Typekit Kit ID ' custom font’ is closed to new replies.