admin管理员组文章数量:1023738
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
2 Answers
Reset to default 0There 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)
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
2 Answers
Reset to default 0There 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)
本文标签: how to add fa fa icons customize menu using wpnavmenu function
版权声明:本文标题:how to add fa fa icons customize menu using wp_nav_menu function? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745572363a2156811.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论