Navigation Menu IDs & Classes

توسط

This plug-in limits the classes WordPress added to navigation menus to only those desired by the Theme owner,
adds a unique ID to each li and removes any empty class attributes.

More about this plug-in can be found at:
http://aarontgrogg.com/2011/09/28/wordpress-plug-in-navigation-menu-ids-classes/

Please let me know if you have any questions/suggestions/thoughts,

Atg

  1. Download the ZIP
  2. Unzip the ZIP
  3. Copy/paste the unzipped files into your WP plug-in directory (/wp-content/plugins/)
  4. From within WP’s Plugin Admin panel, Activate the ‘Navigation Menu IDs & Classes’ plug-in
  5. Choose which, if any, WP classes you wish to have in your HTML
  6. Marvel at the power of technology!

سوالات متداول

Why bother?

  • WP bakes in a ton of extraneous, border-line-useless, IDs and classes on navigation menu LIs (are you really going to
    target id="menu-item-72" or class="page-item-58" in your CSS?). This plug-in greatly reduces those classes,
    and adds classes that reflect the link’s page name, in slug form, so you can easily target menu LIs in your CSS.

What WP classes are allowed to remain?

  • Any that you choose.

Does this work with standard and custom menus?

  • Yes, both standard and custom menus will get class names that reflect the page name from the link they contain, such as:
  • About Us
تصویری برای این آیتم موجود نیست.
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
هیچ نسخه‌ای برای این آیتم موجود نیست.
★★★★★
★★★★★
4.8 /5 (5 نظر)

قیمت:

رایگان

نگارش

آخرین انتشار

20 اردیبهشت 1405

آخرین بروزرسانی

1 ماه پیش

نصب های فعال

100+

نگارش وردپرس

وردپرس 3.0+

تست شده از نسخه

وردپرس 4.1.42

نگارش PHP

-

نسخه ها

0 نسخه