このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Custom Menu Class

説明

Simple plugin that adds extra functionality to menu items. The plugin will allow to set predefined CSS classes (Select field) to menu items.
Support for the plugin “If Menu”: https://wordpress.org/plugins/if-menu/ – does not break the “If Menu” plugin.

Example of defining CSS classes for menu items is in the “FAQ” tab here.

Custom Menu Class is 100% free. if you have questions or need additional information u can comment on my website ( http://deving.de – http://deving.de/blog/wordpress/2292-wordpress-plugin-fuer-voreingestellte-css-klassen-fuer-menue-links/ ) or in the “Support” tab here.

Check out my Themeforest Account

スクリーンショット

  • Here's a screenshot of it in action

インストール

To install the plugin, follow the steps below

  1. Upload custom-menu-class to the /wp-content/plugins/ directory
  2. WordPress の「プラグイン」メニューからプラグインを有効化
  3. Define CSS classes for menu items in the ‘Options -> Menu CSS Classes’ settings page
  4. Set predefined CSS classes for your menu items in ‘Appearance -> Menus’ page – Choose CSS classes from the select field (multiple selection is possible)

FAQ

How can I set the CSS classes?

Set the CSS classes in the Custom Menu Class settings page under ‘Options -> Menu CSS Classes’

評価

2017年1月29日
Nice and simple. However, if you have this menu icons plugin installed; https://wordpress.org/plugins/menu-icons/ ..it doesn't work, nor do you even see an option to select css classes. Also, could've been even more simple if it worked like WP used to work; simply a text field in the menu settings underneath each item, where you write your css classes.. That would be more straightforward and not require to go to another settings page to create classes. Hope that can be changed in the future?
2016年9月3日 2 replies
Installing this plugin removed my theme's built in options for configuring menu items and replaced them with a panel that only allows you to apply a style but I was unable to create any styles. There is a panel that lists all styles in the Settings panel (mistakenly referred to as Options in the instructions, unless I misunderstood) but no "add new" button. So I was unable to create a class, rendering the class pulldown in the menu builder ineffective.
7件のレビューをすべて表示

貢献者と開発者

Custom Menu Class はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Custom Menu Class” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

0.1

  • Plugin release. Basis for this plugin is “If Menu”: https://wordpress.org/plugins/if-menu/

0.1.2

  • Added screenshot
  • Bugfix: Filter function name

0.2.0

  • Added plugin settings page for CSS classes (Options -> Menu CSS Classes)

0.2.1

  • Fullwidth select field for menu CSS classes

0.2.2

  • Bugfix: Added wp_reset_query
  • Bugfix: Changed _e() to __()

0.2.3

  • Notice: removed deprecated argument caller_get_posts and added ignore_sticky_posts

0.2.4

  • changed wp_reset_query to wp_reset_postdata

0.2.5

  • changed WP_Query to get_posts

0.2.6

  • bugfix get_post_meta in wp 4.5

0.2.6.1

  • bugfix get_post_meta in wp < 4.5