Changeset 1184646
- Timestamp:
- 06/20/2015 08:50:16 AM (11 years ago)
- File:
-
- 1 edited
-
custom-menu-class/trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-menu-class/trunk/readme.txt
r1177796 r1184646 17 17 Example of defining CSS classes for menu items is in the "FAQ" tab here. 18 18 19 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.19 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. 20 20 21 21 == Installation == … … 25 25 1. Upload `custom-menu-class` to the `/wp-content/plugins/` directory 26 26 2. Activate the plugin through the 'Plugins' menu in WordPress 27 3. Define CSS classes for menu items: 28 ` 29 //theme's functions.php 30 add_filter('custom_menu_css_classes', 'custom_menu_classes_extra'); 31 32 function custom_menu_classes_extra($classes) 33 { 34 $classes[] = array( 35 'name' => __('Footer CSS Class 1', 'custom-menu-class'), 36 'class' => 'footer-class-1' 37 ); 38 39 $classes[] = array( 40 'name' => __('Footer CSS Class 2', 'custom-menu-class'), 41 'class' => 'footer-class-2' 42 ); 43 44 return $classes; 45 } 46 ` 47 4. Set predefined CSS classes for your Menu Items in Appearance -> Menus page - Choose CSS classes from the select field (multiple selection is possible) 27 3. Define CSS classes for menu items in the 'Custom Menu Class' settings page 28 4. Set predefined CSS classes for your menu items in 'Appearance -> Menus page' - Choose CSS classes from the select field (multiple selection is possible) 48 29 49 30 == Frequently Asked Questions == … … 51 32 = How can I set the CSS classes? = 52 33 53 Example of adding new CSS classes for menu items. 54 55 ` 56 //theme's functions.php 57 add_filter('custom_menu_css_classes', 'custom_menu_classes_extra'); 58 59 function custom_menu_classes_extra($classes) 60 { 61 $classes[] = array( 62 'name' => __('Footer CSS Class 1', 'custom-menu-class'), 63 'class' => 'footer-class-1' 64 ); 65 66 $classes[] = array( 67 'name' => __('Footer CSS Class 2', 'custom-menu-class'), 68 'class' => 'footer-class-2' 69 ); 70 71 return $classes; 72 } 73 ` 34 Set the CSS classes in the Custom Menu Class settings page 74 35 75 36 == Screenshots == … … 83 44 84 45 = 0.1.2 = 85 * Added Screenshot46 * Added screenshot 86 47 * Bugfix: Filter function name 48 49 = 0.2.0 50 * Added plugin settings page for CSS classes
Note: See TracChangeset
for help on using the changeset viewer.