Skip to main content
added 82 characters in body
Source Link
mmm
  • 3.8k
  • 3
  • 16
  • 22

See, you need to update you $item_output variable. fontawesome outputs the icons in this format <i class="fa fa-angle-right"></i>.

you need to add this <i> within your <a> like this.

$item_output = "$args->before<a $attributes>$args->link_before<i class='$variable_which_stores_fontawesomme_value'></i>$title</a>" . "$args->link_after$args->after";

$item_output = "$args->before"
    . "<a $attributes>"
        . "$args->link_before"
        . "<i class='$variable_which_stores_fontawesomme_value'></i>"
        . "$title"
    . "</a>"
    . "$args->link_after"
    . "$args->after";

$variable_which_stores_fontawesomme_value should be equal to fa fa-angle-right.

See, you need to update you $item_output variable. fontawesome outputs the icons in this format <i class="fa fa-angle-right"></i>.

you need to add this <i> within your <a> like this.

$item_output = "$args->before<a $attributes>$args->link_before<i class='$variable_which_stores_fontawesomme_value'></i>$title</a>" . "$args->link_after$args->after";

$variable_which_stores_fontawesomme_value should be equal to fa fa-angle-right.

See, you need to update you $item_output variable. fontawesome outputs the icons in this format <i class="fa fa-angle-right"></i>.

you need to add this <i> within your <a> like this.

$item_output = "$args->before"
    . "<a $attributes>"
        . "$args->link_before"
        . "<i class='$variable_which_stores_fontawesomme_value'></i>"
        . "$title"
    . "</a>"
    . "$args->link_after"
    . "$args->after";

$variable_which_stores_fontawesomme_value should be equal to fa fa-angle-right.

Source Link
Dilip Gupta
  • 159
  • 2
  • 14

See, you need to update you $item_output variable. fontawesome outputs the icons in this format <i class="fa fa-angle-right"></i>.

you need to add this <i> within your <a> like this.

$item_output = "$args->before<a $attributes>$args->link_before<i class='$variable_which_stores_fontawesomme_value'></i>$title</a>" . "$args->link_after$args->after";

$variable_which_stores_fontawesomme_value should be equal to fa fa-angle-right.