Linux 软件免费装

MAJpage Menu Class Extender

开发者 duzymaju
更新时间 2019年9月8日 20:21
PHP版本: 3.0.0 及以上
WordPress版本: 5.2

标签

tags menu classes parent wp_nav_menu first last odd wp_page_menu even :first-child :last-child :nth-child

下载

1.0 1.1 1.2 1.3 1.4 1.5 1.6

详情介绍:

This simple plugin was written to add classes to first, last, parent, even and odd elements of wp_page_menu and wp_nav_menu to support recognizing it in older browsers without :first-child, :last-child and :nth-child supporting. Plugin adds the following classes to menu <li> tags: Above classes are added separately to each menu level. Plugin use SimpleXML extension and requires PHP 5 or higher. Menu should have valid XHTML code.

安装:

  1. Upload "majpage-menu-class-extender.php" to the "/wp-content/plugins/" directory.
  2. Activate the plugin through the "Plugins" menu in WordPress.
  3. That's all - plugin is fully operational and adds specified classes in every wp_page_menu and wp_nav_menu element with menu defined in "Menus" tab.

升级注意事项:

1.5 Changes were made to replace deprecated function. 1.4 Plugin now supports wp_page_menu as well as wp_nav_menu. It's functions has been changed into MAJpageMCE class static methods. 1.3 Changes were made to add suport for HTML5 <menu> tag. 1.2 Changes were made due to instability in case of menu container absence. 1.1 Changes were made due to instability in case of HTML special chars existence. 1.0 This is the first version of plugin.

更新日志:

1.6 1.5 1.4 1.3 1.2 1.1 1.0