我正在制作一个带有wordpress下拉菜单的菜单,如何在菜单名称后添加一个字体很棒的下拉图标(如果它具有下拉菜单),
<li class="nav-item drop_menu">
<a class="nav-link" href="#">
Services<i class="fas fa-caret-down"></i>
</a>
<ul>
<li>
<a href="service.html">Service main</a>
</li>
<li>
<a href="service-single.html">Service single</a>
</li>
</ul>
</li>
我尝试过
if ( isset( $args->has_children ) && $args->has_children ) {
$classes[] = 'drop_menu';
}
并添加drop_menu类。但是如何添加图标作为标记?