Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mickey Kay

    (@mcguive7)

    Hi gofigure,

    Happy to report that you can already achieve this using the provided filters. The bfa_icon filter, which allows you to modify the full icon output. So all you need to do is use the filter to search and replace:

    <i

    with:

    <span aria-hidden="true"

    Should be all set!

    Thread Starter gofigure

    (@gofigure)

    AWESOME!

    Thanks Mickey!

    Something like this?

    function filter_bfa_icon( $output ) {
    $replace = array(
    ‘<i’ => ‘<span’,
    ‘</i>’ => ‘</span>’
    );
    $new_output = str_replace(array_keys($replace), array_values($replace), $output);
    return $new_output;
    };

    add_filter( ‘bfa_icon’, ‘filter_bfa_icon’, 10, 1 );

    Plugin Author Mickey Kay

    (@mcguive7)

    Yep – that looks good to me!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Feature request: Accessibility’ is closed to new replies.