我想使徽标居中。并将我的菜单分成两部分。我可以通过使用 css 来实现这一点,但问题是,我如何在 li 中插入徽标。由于完整的菜单仅由功能创建。菜单由以下代码创建:
<div class="logo"><a href="<?php echo home_url(); ?>/"><img src="<?php echo $qode_options_central['logo_image']; ?>" alt="Logo"/></a></div>
<div class="header_inner_right">
<?php
$menu_type = $qode_options_central['top_menu'];
?>
<nav class="main_menu <?php if($menu_type == "drop_down") { echo "drop_down"; } elseif($menu_type == "drop_down2") { echo "drop_down2"; } else { echo "drop_down"; } ?>">
<?php
if($menu_type == "drop_down") :
wp_nav_menu( array( 'theme_location' => 'top-navigation' ,
'container' => '',
'container_class' => '',
'menu_class' => '',
'menu_id' => '',
'fallback_cb' => 'top_navigation_fallback',
'walker' => new qode_type1_walker_nav_menu()
));
elseif($menu_type == "drop_down2"):
wp_nav_menu( array( 'theme_location' => 'top-navigation' ,
'container' => '',
'container_class' => '',
'menu_class' => '',
'menu_id' => '',
'fallback_cb' => 'top_navigation_fallback',
'walker' => new qode_type2_walker_nav_menu()
));
else :
wp_nav_menu( array( 'theme_location' => 'top-navigation' ,
'container' => '',
'container_class' => '',
'menu_class' => '',
'menu_id' => '',
'fallback_cb' => 'top_navigation_fallback',
'walker' => new qode_type1_walker_nav_menu()
));
endif;
?>
</nav>
<div class='selectnav_button'><span> </span></div>
<?php
$display_header_widget = $qode_options_central['header_widget_area'];
if($display_header_widget == "yes"){ ?>
<div class="header_right_widget">
<?php dynamic_sidebar('header_right'); ?>
</div>
<?php } ?>
</div>
我想将菜单分成两部分。我想要这样的东西:
http://local.obcasio.com/Untitled-3.png
提前谢谢。