• Hello,
    i’ve added this little snippet code to my functions.php file, in order to add some fontawesome icons in widget titles :

    add_filter( 'widget_title', 'do_shortcode' );
    
    add_shortcode( 'fa', 'so_shortcode_fa' );
    function so_shortcode_fa( $attr, $content ) {
        return '<i class="fa fa-'. $content . '"></i>';
    }

    working so far in normal widget area, but not with the widgets in the wit area, can you provide some help please to make it working ?

    Sorry for my bag english…

    https://www.ads-software.com/plugins/widgets-in-tabs/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author 404

    (@ahspw)

    Hi,

    I think the JavaScript part of WIT is discarding those added <i> elements. You can verify that by disabling JavaScript and inspecting WIT’s html; the added <i> elements should be there.

    I’ll check this further and see what I can do about it.

    Thread Starter alfazzz

    (@alfazzz)

    Hi,
    Ok i see. Will wait for your solution if you find one…
    This could be a nice addition to your plugin i think.

    Thank you, hope to see an answer soon !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Icons in titles’ is closed to new replies.