Archived topic
Fontawesome
3 replies · Started by Alfonso on May 19, 2020
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?
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.
Ok thanks!
You're welcome