აღწერა
WP Custom Menu Filter Plugin uses a new filter hook in WordPress 3.1 that allows Custom Menus to be filtered. Instead of using the generic CSS {display:none;}, this plugin actually excludes nav menu items from even being created. While it uses the CSS class tag in the Custom Menu to determine which custom menu items should be excluded, it does not use CSS to hide the menu items, which savvy users can discover. Instead using one custom menu, the user can hide portions of their custom menu to visitors (even the savvy ones) while revealing other portions of their menu to users who are logged in and vice versa.
დაყენება
- Upload the
wp-custom-menu-filter-plugin
directory to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Locate the ‘Custom Menu Filter Settings’ item on the ‘Appearance’ menu
- Change your options, and you are good to go!
ხდკ
- How do I add a CSS class to my custom menu?
-
- At
/wp-admin/nav-menus.php
found under Appearance > Menus. Then select Screen Options at the top right. Then check CSS Classes. Then click Screen Options to hide the menu again. - Click down arrow beside the menu item. You should see an input box for CSS Classes (Optional).
- Fill in with whatever CSS class you’d like. It is space-separated, so be sure to enter each class as one item (e.g., admin, admin-class, NOT admin class).
- Click Save Menu
- Be sure to assign a menu to a theme location as this will determine whether the menu appears in the filter settings page. Click Save.
- Navigate to
wp-admin/themes.php?page=wps-filter-menu
which is found under Appearance > Custom Menu Filter Settings - Enter CSS Class Name that you’d like to have filtered out.
Again this plugin does not use CSS classes to hide menu items. Instead it uses the CSS Class information on the backend to filter these items out all together.
- At
მიმოხილვები
There are no reviews for this plugin.
მონაწილეები & დეველოპერები
“WP Custom Menu Filter Plugin” ღია პროგრამული უზრუნველყოფაა. შემდეგმა ადამიანებმა წვილი შეიტანეს მის განვითარებაში.
მონაწილეებიგადათარგმნეთ WP Custom Menu Filter Plugin თქვენს ენაზე.
დაინტერესებული ხართ დეველოპმენტით?
დაათვალიერეთ კოდი, შეამოწმეთ SVN რეპო, ან გამოიწერეთ შექმნის ჟურნალი : RSS.
ცვლილებები
0.7 Fixed another conflict with yet another plugin
0.6 Fixed conflict with another plugin
0.5 Added default settings
0.4 Added uninstall to remove options/settings upon deletion.
0.3 Added flipped functionality (hide items from logged in users). Security update.
0.1 Initial Public Release