[Resolved] Fontawesome

Home Forums Support [Resolved] Fontawesome

Home Forums Support Fontawesome

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1291687
    Alfonso

    Hi

    Im trying to add some Fontawesome icons after my logo with a code snippet:

    add_filter( ‘generate_logo_output’, ‘tu_logo_class’, 10, 3 );
    function tu_logo_class( $output, $logo_url, $html_attr ) {
    printf(


    <span class=”icon-logo-home home-logo %3$s”></span>
    </br>
    <i class=”fab fa-telegram” aria-hidden=”true”></i>

    ‘,
    esc_url( apply_filters( ‘generate_logo_href’ , home_url( ‘/’ ) ) ),
    esc_attr( apply_filters( ‘generate_logo_title’, get_bloginfo( ‘name’, ‘display’ ) ) ),
    $html_attr
    );
    }

    But is not working, only works if my Page is made with elementor and the icons is activated from Elementor, how i can solve it?

    #1291801
    David
    Staff
    Customer Support

    Hi there,

    GP doesn’t load FontAwesome:

    https://docs.generatepress.com/article/font-awesome/

    The plugin in that document can be used to install it across the site.

    #1295854
    Alfonso

    Ok thanks!

    #1296028
    David
    Staff
    Customer Support

    You’re welcome

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.