Site logo

Archived topic

Fontawesome

3 replies · Started by Alfonso on May 19, 2020

Viewing posts 1–4 of 4

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?

Ok thanks!

You're welcome

This archived topic is closed to new replies.