Home › Forums › WoodMart support forum › Typekit Kit ID ' custom font
Typekit Kit ID ' custom font
- This topic has 18 replies, 3 voices, and was last updated 5 years, 4 months ago by Artem Temos.
-
AuthorPosts
-
August 9, 2019 at 8:57 am #137059
a1waqasParticipanthi, 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
August 9, 2019 at 9:33 am #137074
Elise NoromitMemberHello,
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
August 9, 2019 at 11:00 am #137103
a1waqasParticipantI 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…
August 9, 2019 at 11:20 am #137108
Elise NoromitMemberHello,
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
August 9, 2019 at 11:30 am #137115
a1waqasParticipanthi, I followed your words and added the command but still getting the same error.
August 9, 2019 at 1:12 pm #137154
Elise NoromitMemberHello,
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
August 10, 2019 at 7:49 pm #137395
a1waqasParticipanthi, 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
August 11, 2019 at 6:33 am #137430
Elise NoromitMemberHello,
Please install and activate this plugin https://wordpress.org/plugins/safe-svg/ and try again.
Best Regards
August 11, 2019 at 6:55 am #137436
a1waqasParticipantHi,
It’s ALREADY INSTALLED. Can you handle it if i provide login details to you?Thanks
August 11, 2019 at 9:20 am #137445
Elise NoromitMemberHello,
Please provide the site admin access to the private area.
Best Regards
August 11, 2019 at 10:27 am #137451
a1waqasParticipanthi here are the details
August 11, 2019 at 8:01 pm #137531
a1waqasParticipantReminder
August 12, 2019 at 7:40 am #137587
Elise NoromitMemberHello,
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
August 12, 2019 at 8:10 am #137593
a1waqasParticipanthi, 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.
August 12, 2019 at 9:24 am #137618
Elise NoromitMemberHello,
Please provide the file you have not attached.
Best Regards
August 12, 2019 at 4:19 pm #137742
a1waqasParticipanthi, 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.August 13, 2019 at 1:18 pm #137923
Artem TemosKeymasterYour 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.
August 13, 2019 at 1:21 pm #137925
a1waqasParticipanthi,
well noted with thanks for your precious time and consideration.August 13, 2019 at 1:54 pm #137934
Artem TemosKeymasterYou are welcome.
-
AuthorPosts
The topic ‘Typekit Kit ID ' custom font’ is closed to new replies.
- You must be logged in to create new topics. Login / Register