[Resolved] Fontawsome Not Showing in Footer Widget

Home Forums Support Fontawsome Not Showing in Footer Widget

  • This topic has 5 replies, 2 voices, and was last updated 1 year ago by Leo.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1016836
    akmhou

    Hello,

    I’ve added the following code via Code Snippet:

    add_action( ‘wp_enqueue_scripts’, ‘tu_load_font_awesome’ );
    /**
    * Enqueue Font Awesome.
    */
    function tu_load_font_awesome() {
    wp_enqueue_style( ‘font-awesome’, ‘//use.fontawesome.com/releases/v5.5.0/css/all.css’, array(), ‘5.5.0’ );
    }
    I’ve using a Custom HTML footer widget and added…
    <p>
    <i class=”fas fa-map-marker-alt”></i>   6140 Highway 6, Suite 175<br><i class=”fas fa-map-marker-alt” style=”color:#08294e;”></i>   Missouri City, TX 77459</p>
    <p>
    <i class=”fas fa-phone-alt”></i>   281.969.7514
    </p>
    <p>
    <i class=”fas fa-envelope”></i>   Email Me (Form)
    </p>

    The Fontawsome icons show correctly on the front page and one other page (My Story), but not on the others.

    How can I fix this?

    Thanks,
    Achinta

    #1016838
    Leo
    Staff
    Customer Support

    Hi there,

    You need to install the plugin:
    https://en-ca.wordpress.org/plugins/better-font-awesome/

    As well as the snippet:
    https://docs.generatepress.com/article/font-awesome/#font-awesome-5

    To use Font Awesome 5.

    It’s currently working on some pages likely because Elementor (or another plugin) is loading it for you.

    Let me know if this helps 🙂

    #1016884
    akmhou

    Hi Leo,

    Thanks lot for your solutions. As usual, very quick response.
    I’ll try them out and let you know.

    Regards,
    Achinta

    #1016887
    Leo
    Staff
    Customer Support
    #1017145
    akmhou

    Hi Leo,

    Thanks a lot for your suggestions. However, I decided to create a custom footer using Elementor.

    I’m marking this as resolved.

    Thanks,
    Achinta

    #1017149
    Leo
    Staff
    Customer Support
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.