该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Menu Child Indicator

描述

This plugin adds the css class .has-children to menu items that have a submenu to allow css styling.

安装

  1. Upload menu-child-indicator.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add styles with the CSS rule .menu .children .has-children (Hint: use the pseudo-element ::after along with content: "\00a0\bb"; to add a double arrow pointing to the right.)
  4. That’s it!

常见问题

  • What style to you use for your indicator?
  • Glad you asked! See the css block below:

    css
    .menu .children .has-children::after {
    content: "\00a0\bb";
    position: absolute;
    top: .3em;
    right: 10px;
    font-size: 18px;
    color: white;
    }

评价

此插件暂无评价。

贡献者及开发者

「Menu Child Indicator」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.1.4

  • Update “tested up to” version

1.1.3

  • Update “tested up to” version

1.1.2

  • Add sample css and screenshot

1.1

  • Minor readme tweaks

1.0

  • First version