Home Forums WoodMart support forum Custom Font Upload

Custom Font Upload

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

    kreativeabu
    Participant

    I am trying to upload custom fonts but i am getting this error “Sorry, this file type is not permitted for security reasons.”

    I have added the code define( ‘ALLOW_UNFILTERED_UPLOADS’, true ); in wp-config.php file But still showing same error “Sorry, this file type is not permitted for security reasons.”

    Please help.

    #136309

    Hello,

    Please provide the FTP access to the private area

    Best Regards

    #136405

    kreativeabu
    Participant

    Please check private area

    #136522

    Hello,

    Please try to upload now.

    Best Regards

    #136647

    kreativeabu
    Participant

    Still not working. Please check in my admin

    #136751

    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

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