New Landing How can we help? Themeforest Theme Support Neighborhood Empty boxes instead of fontawesome icons

Viewing 8 posts - 1 through 8 (of 8 total)
  • #225659
    MarieWorks
    Member
    Post count: 225

    Hi,

    I cant replicate it on my machine – but some users have reported seeing square boxes in different areas of theme (top nav bar – e.g. bag / search icons) and on rev sliders – instead of font awesome icons.

    Screen shots attached

    We are using a custom font in our theme – implemented with css below (which was recommended on this forum)

    @font-face {
    font-family: Larsseit;
    src: url(https://www.reikokaneko.co.uk/wp-content/themes/neighborhood-child/fonts/2E6300_1_0.woff
    );
    font-weight: normal ;
    }
    :not(i) {
        font-family: 'Larsseit' !important;
    }

    Any ideas what is causing this and why it only shows up for some users?

    Many thanks,

    C

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

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

    function sf_enqueue_styles_new(){
    wp_deregister_style('fontawesome-css');
    wp_dequeue_style( 'fontawesome-css' );
    wp_register_style('fontawesomeNew', '//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css', array(), NULL, 'all');
    wp_enqueue_style('fontawesomeNew'); 
    }
    add_action('wp_enqueue_scripts', 'sf_enqueue_styles_new', 111); 
    
    

    Thanks
    Mohammad

    #225909
    MarieWorks
    Member
    Post count: 225

    Hi,

    Can I ask for a quick explanation of what the above does?

    Many thanks,

    C

    #225910
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Is there any specific page this happens on, I cannot replicate it.

    Mohammad’s code, essentially adds fontAwesome icons to your site from their delivery network.

    I notice you are using https, do you have the http plugin installed on your site?

    – David.

    #225918
    MarieWorks
    Member
    Post count: 225
    This reply has been marked as private.
    #225922
    David Martin – Support
    Moderator
    Post count: 20834

    The plugin helps force elements to be loaded over https rather than http. Sometimes browsers block the font icons for this reason and you get no icon loaded. Though, everything looks good on the site currently.

    We also check the outputted URL’s to detect if content is needed to be served over https.

    If you notice anything, please let us know.

    – David.

    #225927
    MarieWorks
    Member
    Post count: 225

    Hi I don’t think we need the extra https plugin – we currently have solved all remaining mixed content errors.

    Cant we just load the icons from a hard https link if that is the problem.

    Thanks

    Chris

    #225935
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Chris,

    The icons should be loading over https already, as standard.

    Cheers,
    David.

Viewing 8 posts - 1 through 8 (of 8 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