New Landing How can we help? Themeforest Theme Support Dante Icons show as squares

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Dante
  • #117714
    MilenaCreative
    Member
    Post count: 28

    Hi, I’m designing a site that was pre-built so there is some custom coding going on there, but when I switched themes to Dante everything’s working great except the icons are appearing only as black squares. Screenshot attached. Any ideas? Thanks,

    URL of the site:
    http://www.rhondalegault.ca/selling-your-home/

    Attachments:
    You must be logged in to view attached files.
    #117839
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Showing fine for me? Please can you double check?

    – Kyle

    Attachments:
    You must be logged in to view attached files.
    #118071
    MilenaCreative
    Member
    Post count: 28

    That’s strange, I’m glad you can see them but I can only see squares everywhere on the site. Have you had this issue before? Maybe it’s my browser…

    #118080
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    This issue appears at Firefox as i checked. Please insert given below php code snippet at functions.php of child theme.

    function sf_enqueue_styles_new(){
    wp_deregister_style('fontawesome');
    wp_dequeue_style( 'fontawesome' )
    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

    #118089
    MilenaCreative
    Member
    Post count: 28

    Thank you Mohammad,
    I’m using Chrome, does that make a difference in the code?
    I’m also using the main theme, not a child theme— will that affect the effectiveness of the code as well? Thank you for your quick responses!

    #118098
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    It seems that you have some CDN or cache plugin that is causing errors when loading Fontawesome.
    It’s trying to load the Fontawesome from http://www.rhondalegault.galerealestate.ca to this domain http://www.rhondalegault.ca

    This is considered a security vulnerability by some browsers, please adjust your settings to have only 1 domain.

    -Rui

    #118099
    MilenaCreative
    Member
    Post count: 28

    Thank you Rui, I appreciate your help. Thanks everyone — it’s a tricky situation because my client is a real estate agent and the site is provided to her by the office she works for; I have very limited knowledge to how the site is setup, nor am I hosting it. I’ll try the php you provided, Mohammad; hopefully that works.

    #118107
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am sure that my code should work fine because font will load through another CDN through this code.
    Thanks
    Mohammad

    #118157
    MilenaCreative
    Member
    Post count: 28

    One last question for Mohammad — on what line within functions.php do I paste the code you provided? Thank you!

    #118171
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Add it to your child theme’s functions.php file

    – Kyle

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