Font Awesome

This topic contains 8 replies, has 3 voices, and was last updated by  Artur Kowalczyk 5 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #439907

    Artur Kowalczyk
    Expired Member
    Post count: 11

    hi,
    can You update font awesome css link to the latest version?

    thx

    #439910

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    V1 may get a backport to the latest after the release of V2.

    V2 is using the latest.

    Are ou experiencing an issue on your site? Please tell us more about it so we can help.

    #439911

    Artur Kowalczyk
    Expired Member
    Post count: 11

    everything is fine but I wanted to change some icons (override in css) and I can not use few of them becouse they are available in font awesome 5.0.0 (https://fontawesome.com/icons/external-link-alt?style=solid).
    on my web 4.7.0 is loaded.
    I have GeoDirectory 1.6.28

    #439912

    Alex Rollin
    Moderator
    Post count: 27815

    OK, I will flag this for the developers, who will respond if they have an update about the backport for FA 5+.

    #439913

    Artur Kowalczyk
    Expired Member
    Post count: 11

    thx 🙂

    #439956

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    No updates about a backport of FA5 to V1, however, if you want to customize your site you can go ahead and upgrade FA with the following snippet:

    
    
    
    add_action( 'admin_enqueue_scripts', 'enqueue_styles_and_scripts' );
    add_action( 'wp_enqueue_scripts', 'enqueue_styles_and_scripts' );
    
    function enqueue_styles_and_scripts() {
    
    	wp_dequeue_style( 'font-awesome' );
    
    	wp_register_style('font-awesome', 'https://use.fontawesome.com/releases/v5.2.0/css/fontawesome.css', array(), '5.2.0');
    	wp_enqueue_style('font-awesome');
    
    }
    

    However, we have not yet fully tested this for V1, so, if there are problems or lack of backwards compatibility for some icons, you will need to contact a developer for further support.

    As an example, Old class “fa fa-address-book” and new class “fas fa-book-open” (latest 5.2.0 version)

    https://wpgeodirectory.com/support-policy/
    http://geodirectoryexperts.com

    For more information about customizing your site see: https://wpgeodirectory.com/docs/customizing-your-style/

    #439976

    Artur Kowalczyk
    Expired Member
    Post count: 11

    Is that snippet correct?
    It is not working, I still have FA 4.7.0.

    Cache cleaned.

    #439989

    Kor
    Moderator
    Post count: 16516

    Hi Artur,

    I’ve just made some changes to the code and could you try this one and see if it works? Insert it using the “Code Snippet” plugin.

    
    
    add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet');
    
    function remove_default_stylesheet() {
        
        wp_dequeue_style( 'font-awesome' );
        wp_deregister_style( 'font-awesome' );
    wp_register_style('font-awesome-new', 'https://use.fontawesome.com/releases/v5.2.0/css/fontawesome.css', array(), '5.2.0');
    	wp_enqueue_style('font-awesome-new');
    
    }
    #440326

    Artur Kowalczyk
    Expired Member
    Post count: 11

    it works now, thx.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket