Font-Awesome version 5

VWSとは フォーラム Lightning Font-Awesome version 5

Font-Awesome version 5

10件の投稿を表示中 - 1 - 10件目 (全10件中)
  • 投稿者
    投稿
  • #16814

    syouei-branding
    参加者

    Hi,

    My theme: Lighting Pro 0.8.0

    I want to add icons which have the medium size, so i added far fa-angle-double-right and choosed Font-Awesome as 5 Web Fonts with CSS, but it didn’t work (the attached image).
    How can I fix theme?

    #16815

    syouei-branding
    参加者

    Sorry, uploaded file was fail. I upload it again.

    my page: https://sanshinj.dreamhive.site/

    Attachments:
    You must be logged in to view attached files.
    #16817

    DRILL LANCER
    モデレーター

    Hi.

    On The site, the CSS of Font Awesome is overridden by bellows-accordion-menu.
    bellows-accordion-menu uses Font Awesome 4.4.0.

    Can you change plugin for accordion menu?

    #16818

    syouei-branding
    参加者

    Hi @RICK,

    I uninstalled Bellows-accordion-menu, it still hasn’t worked yet.

    #16819

    DRILL LANCER
    モデレーター

    Hi. @syouei-branding.

    Did you delete cache of browser, server, and WordPress?

    #16820

    syouei-branding
    参加者

    Hi @RICK,

    I cleared cache and I think Bellows is not the reason. I also has another website (https://webtan.jp/) and I cannot use far with Awssome version 5.

    Attachments:
    You must be logged in to view attached files.
    #16822

    DRILL LANCER
    モデレーター

    far, Font Awesome Regular, is for Font Awesome Pro.
    https://fontawesome.com/how-to-use/on-the-web/setup/upgrading-from-version-4#changes

    Lightning contains Font Awesome Free.

    So, you can not use far fa-angle-double-right.
    Insted, you can use fas fa-angle-double-right or fab fa-angle-double-right.

    #16823

    syouei-branding
    参加者

    Hi @RICK,

    I’m so sad because Lighting just support Font Awesome Free version, so I only can use fas and the appearance is not quite friendly, look so bold.

    Thanks for your support.

    Attachments:
    You must be logged in to view attached files.
    #16835

    DRILL LANCER
    モデレーター

    If you can buy Font Awesome Pro and use legally, you can use it by the code under this sentence.

    function change_font_awesome() {
        // Deregister Font Awesome Free.
        wp_deregister_style( 'font-awesome' );
        wp_deregister_script( 'font-awesome-js' );
        //Enqueue Font Awesome Pro CSS (example).
        wp_enqueue_style( 'font-awesome-pro', get_stylesheet_directory_uri() . '/library/font-awesome-pro/all.min.css', array(), '5.9.0' );
    }
    add_action( 'wp_enqueue_scripts', 'change_font_awesome' );
    #16852

    syouei-branding
    参加者

    I will try it,

    Thanks for your kindly support!

10件の投稿を表示中 - 1 - 10件目 (全10件中)
  • このトピックに返信するにはログインが必要です。