php Genesis主要/次要导航。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Genesis主要/次要导航。相关的知识,希望对你有一定的参考价值。

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Unregister primary/secondary navigation menus
remove_theme_support( 'genesis-menus' );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Unregister secondary navigation menu
add_theme_support( 'genesis-menus', array( 'primary' => __( 'Primary Navigation Menu', 'genesis' ) ) );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Unregister primary navigation menu
add_theme_support( 'genesis-menus', array( 'secondary' => __( 'Secondary Navigation Menu', 'genesis' ) ) );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Reposition the secondary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_before_header', 'genesis_do_subnav' );
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );

以上是关于php Genesis主要/次要导航。的主要内容,如果未能解决你的问题,请参考以下文章

css Center Genesis主导航菜单

php Mai Pro - 强制主要和次要侧边栏宽度相同

PHP Drupal 6:使用i18n模块翻译主要和次要链接

css 将子菜单指示符添加到Genesis中的导航菜单项

PHP从次要单位格式化多种货币

php 精选图片,genesis.php