Plugin Directory

Changeset 1184646


Ignore:
Timestamp:
06/20/2015 08:50:16 AM (11 years ago)
Author:
Aiken1
Message:

readme.txt updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • custom-menu-class/trunk/readme.txt

    r1177796 r1184646  
    1717Example of defining CSS classes for menu items is in the "FAQ" tab here.
    1818
    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.
     19Custom 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.
    2020
    2121== Installation ==
     
    25251. Upload `custom-menu-class` to the `/wp-content/plugins/` directory
    26262. 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)
     273. Define CSS classes for menu items in the 'Custom Menu Class' settings page
     284. Set predefined CSS classes for your menu items in 'Appearance -> Menus page' - Choose CSS classes from the select field (multiple selection is possible)
    4829
    4930== Frequently Asked Questions ==
     
    5132= How can I set the CSS classes? =
    5233
    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 `
     34Set the CSS classes in the Custom Menu Class settings page
    7435
    7536== Screenshots ==
     
    8344
    8445= 0.1.2 =
    85 * Added Screenshot
     46* Added screenshot
    8647* 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.