New Landing How can we help? Themeforest Theme Support Joyn Sub menu not showing properly with header 5

Viewing 3 posts - 16 through 18 (of 18 total)
  • Posted in: Joyn
  • #267232
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    add_filter('upload_mimes', 'sf_add_custom_upload_mimes'); 
    function sf_add_custom_upload_mimes($existing_mimes){ 
    return array_merge($existing_mimes, array( 'ttf|woff|otf' => 'application/x-font') ); 
    return $existing_mimes; 
    }

    Thanks
    Mohammad

    #267251
    artshowapplepie
    Member
    Post count: 134

    Hi Mohammed,

    Not doing much it’s displaying an error in the admin panel now see screenshot attached.

    I added a different font now and that seems to work fine, so it must be the font (it didn’t display any custom font till today). I’ll go see what i can do to get a different version of the font as it’s not a theme error.

    Sorry for taking so much of your time!

    Attachments:
    You must be logged in to view attached files.
    #267255
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove the last code and use this new code:-

    <?php
    add_filter('upload_mimes', 'sf_add_custom_upload_mimes'); 
    function sf_add_custom_upload_mimes($existing_mimes){ 
    return array_merge($existing_mimes, array( 'ttf|woff|otf' => 'application/x-font') ); 
    return $existing_mimes; 
    }
    ?>

    Thanks
    Mohammad

Viewing 3 posts - 16 through 18 (of 18 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register