Home Forums WoodMart support forum Custom Fonts

Custom Fonts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #73907

    Beatrizla
    Participant

    Hello!

    I tried to upload a font (.ttf and .eot) but it does not allow it. Error: “Sorry, this file is not permitted for security reasons”.

    What could be the problem?

    Thank you very much!

    #73924

    Artem Temos
    Keymaster

    Hi,

    Are you able to provide us your FTP access so we could troubleshoot it and provide you a solution?

    Regards

    #73955

    Beatrizla
    Participant

    Of course 🙂

    Thanks!

    #73966

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file

    function woodmart_fonts_type( $mimes ) {
        $mimes['ttf'] = 'application/x-font-ttf';
        $mimes['eot'] = 'application/vnd.ms-fontobject';
        return $mimes;
    }
    add_filter( 'upload_mimes', 'woodmart_fonts_type', 1000 );
    #73972

    Beatrizla
    Participant

    It works perfectly!

    Thank you!

    #73976

    Artem Temos
    Keymaster

    You are welcome, we are always happy to help you, write us when you have any difficulties or issues with our theme.

    And we would be glad if you will rate our theme with 5 stars on Theme Forest in case you are satisfied with our theme and customer service http://themeforest.net/downloads

    Thank you in advance 🙂

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

The topic ‘Custom Fonts’ is closed to new replies.