Viewing 10 posts - 1 through 10 (of 10 total)
  • #248044
    AndyH
    Member
    Post count: 54

    Hello,
    the icons from the theme don’t work anymore as you can see in the screenshot attached.
    Please I need help.

    Attachments:
    You must be logged in to view attached files.
    #248049
    David Martin – Support
    Moderator
    Post count: 20834

    They are blocked by your hosting – the difference between https and http makes it looks like you are loading resources from a different domain.

    Please open your .htaccess file and add this:

    # Apache config
    <FilesMatch ".(eot|ttf|otf|woff|svg)”>
    	Header set Access-Control-Allow-Origin "*"
    </FilesMatch>

    Thanks.

    #248082
    AndyH
    Member
    Post count: 54

    Hey,
    thanks for the quick feedback.
    I added this to the access-file. If I go the first time on the page everything is fine, but if I click to another page still the same.
    What can I do else?

    Thanks for your help.

    #248149
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

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

    function sf_remove_scripts() {
        wp_dequeue_style( 'fontawesome-css' );
        wp_deregister_style( 'fontawesome-css' );
        wp_register_style('fontawesome-css-new', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', array(), NULL, 'all');  
        wp_enqueue_style( 'fontawesome-css-new' );
    }
    add_action( 'wp_enqueue_scripts', sf_remove_scripts', 20 );

    Thanks
    Mohammad

    #248470
    AndyH
    Member
    Post count: 54
    This reply has been marked as private.
    #248522
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please add this code just before this php close tag ?> .
    Thanks
    Mohammad

    #249079
    AndyH
    Member
    Post count: 54

    Hey Mohammad,

    I did it the way you told me, but still the same problem.
    Please see the screenshots attached.

    On the mobile, the problem doesn’t exist.

    Please for help.

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

    Hi,
    Please remove that code and use this code:-

    function sf_remove_scripts() {
        wp_dequeue_style( 'fontawesome-css' );
        wp_deregister_style( 'fontawesome-css' );
        wp_register_style('fontawesome-css-new', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css', array(), NULL, 'all');  
        wp_enqueue_style( 'fontawesome-css-new' );
    }
    add_action( 'wp_enqueue_scripts', 'sf_remove_scripts', 20 );

    Thanks
    Mohammad

    #249122
    AndyH
    Member
    Post count: 54

    Hey Mohammad,

    everything is working now except the stars for reviews on the product page.
    How can I change this?

    Thank you

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

    Hi,
    Please open to edit .htacess file at wordpress root installation directory and paste this code:-

    <FilesMatch "\.(ttf|ttc|otf|eot|woff)$">
    <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
    </IfModule>
    </FilesMatch>

    Thanks
    Mohammad

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