add to this: 添加到此: <?php wp_nav_menu(array( 'theme_location' => 'primary',
'theme_location'=>'primary',
'menu_class' => 'nav-menu',
'menu_class'=>'导航菜单',
'menu_id' => 'primary-menu'
'menu_id'=>'主菜单'
) );
));
?>
?> pre>
code> pre>
See the last property:
查看最后一个属性: p>
<代码> <?php wp_nav_menu( array(
wp_nav_menu(array(
'theme_location' => 'primary',
'theme_location'=>'primary',
'menu_class' => 'nav-menu',
'menu_class'=>'导航菜单',
'menu_id' => 'primary-menu',
'menu_id'=>'主菜单',
'walker' => new atr_advanced_menu_walker()
'行者'=> new atr_advanced_menu_walker()
) );
));
?>
?> pre>
code> pre>
Note 1: If you use a theme that uses indirect call to the menu definition (mostly in bought themes or themes that use a framework) you'll have to find the correct way to apply the plugin in that theme.
注1:如果您使用间接调用菜单定义的主题(通常在购买的主题或使用框架的主题中),则必须找到在该主题中应用插件的正确方法。 p
p>
>
Note 2: Examine the class of the menu wrapper div in your theme (like ‘menu_class’ => ‘nav-menu’ in above example ).
注2:检查主题中菜单包装div的类(例如上例中的“ menu_class” =>“ nav-menu”)。
Usually this theme class has properties that override the plugin’s css definitions and can mess up your menu.
通常,此主题类的属性会覆盖插件的CSS定义,并且可能使您的菜单混乱。 p>
If that happens, simply specify the css rule like so:
如果发生这种情况,只需像这样指定css规则:
Find the rule that breaks the menu, for example:
查找打破菜单的规则,例如:
.main-navigation ul ul {}
.main-navigation ul ul {}
Duplicate it and add “.megamenu” (the wrapper for the plugin’s generated menu ) as an explicit selector.
复制它并添加“ .megamenu”(插件生成的菜单的包装器)作为显式选择器。
.main-navigation .megamenu ul ul {}
.main-navigation .megamenu ul ul {} p>
You’ll have also to set the other classes for the menu to display well.
您还必须设置菜单的其他类别才能很好地显示。 p>
Settings
设置 h4>
Right after activating the plugin, go to Appearance – > ATR advanced menu Settings
激活插件后,立即转到外观–> ATR高级菜单设置
Set your settings and save.
设置并保存。 p>