how to add fa fa icons customize menu using wp_nav_menu function?

how to add fa fa icons customize menu using wp_nav_menu function?wp_nav_menu( array('theme_location' => �

how to add fa fa icons customize menu using wp_nav_menu function?

wp_nav_menu( array(
    'theme_location' => 'primary',
    'menu_id'        => 'footer-menu',
    'menu_class'     => 'quick-link',
));

how to add fa fa icons customize menu using wp_nav_menu function?

wp_nav_menu( array(
    'theme_location' => 'primary',
    'menu_id'        => 'footer-menu',
    'menu_class'     => 'quick-link',
));
Share Improve this question edited Apr 19, 2019 at 16:36 fuxia 107k39 gold badges255 silver badges459 bronze badges asked Apr 19, 2019 at 11:32 SonglyricstSonglyricst 12 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

There might be a better way to do this, but I would use jQuery to target the menu items and .addClass(). So, something like:

$( document ).ready(function() {
  $(“.menu-item-one”).addClass(“fa fa-icon”);
); 

There is an option to add your CSS classes to menu.(Here is screenshot)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745572364a4633756.html

相关推荐

  • how to add fa fa icons customize menu using wp_nav_menu function?

    how to add fa fa icons customize menu using wp_nav_menu function?wp_nav_menu( array('theme_location' => �

    22小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信