PluginProbe ʕ •ᴥ•ʔ
Menu Icons by Themeisle – Add Icons to Navigation Menus / 0.13.24
Menu Icons by Themeisle – Add Icons to Navigation Menus v0.13.24
0.13.24 trunk 0.1.0 0.1.1 0.1.2 0.1.3 0.1.4 0.1.5 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.11.2 0.11.3 0.11.4 0.11.5 0.12.0 0.12.1 0.12.10 0.12.11 0.12.12 0.12.2 0.12.3 0.12.4 0.12.5 0.12.6 0.12.7 0.12.8 0.12.9 0.13.0 0.13.1 0.13.10 0.13.11 0.13.12 0.13.13 0.13.14 0.13.15 0.13.16 0.13.17 0.13.18 0.13.19 0.13.2 0.13.20 0.13.21 0.13.22 0.13.23 0.13.3 0.13.4 0.13.5 0.13.6 0.13.7 0.13.8 0.13.9 0.2.0 0.2.1 0.2.2 0.2.3 0.3.0 0.3.1 0.3.2 0.4.0 0.5.0 0.5.1 0.6.0 0.7.0 0.8.0 0.8.1 0.9.0 0.9.2
menu-icons / readme.md
menu-icons Last commit date
css 3 years ago images 4 years ago includes 4 months ago js 4 years ago languages 6 years ago vendor 20 hours ago CHANGELOG.md 20 hours ago LICENSE 12 years ago mailin.php 7 years ago menu-icons.php 20 hours ago readme.md 2 years ago readme.txt 20 hours ago
readme.md
390 lines
1 # Menu Icons by ThemeIsle #
2 **Contributors:** [codeinwp](https://profiles.wordpress.org/codeinwp), [themeisle](https://profiles.wordpress.org/themeisle)
3 **Tags:** menu, nav-menu, icons, navigation
4 **Requires at least:** 4.3
5 **Tested up to:** 5.4
6 **Stable tag:** trunk
7 **License:** GPLv2
8 **License URI:** http://www.gnu.org/licenses/gpl-2.0.html
9
10 Spice up your navigation menus with pretty icons, easily.
11
12
13 ## Description ##
14
15 This plugin gives you the ability to add icons to your menu items, similar to the look of the latest dashboard menu.
16
17 https://www.youtube.com/watch?v=YcSotWXIczI
18
19 ### Usage ###
20 1. After the plugin is activated, go to *Appearance* > *Menus* to edit your menus
21 1. Enable/Disable icon types in "Menu Icons Settings" meta box
22 1. Set default settings for current nav menu; these settings will be inherited by the newly added menu items
23 1. Select icon by clicking on the "Select icon" link
24 1. Save the menu
25
26 ### Supported icon types ###
27 - Dashicons (WordPress core icons)
28 - [Elusive Icons](http://shoestrap.org/downloads/elusive-icons-webfont/) by [Aristeides Stathopoulos](http://shoestrap.org/blog/author/aristath/)
29 - [Font Awesome](http://fontawesome.io/) by [Dave Gandy](http://twitter.com/davegandy)
30 - [Foundation Icons](http://zurb.com/playground/foundation-icon-fonts-3/) by [Zurb](http://zurb.com/)
31 - [Genericons](http://genericons.com/) by [Automattic](http://automattic.com/)
32 - [Fontello](http://fontello.com/) icon packs
33 - [TI Icons](http://themeisle.com/free-icons/) icon pack by [ThemeIsle](http://twitter.com/themeisle)
34 - Image (attachments)
35 - SVG (attachments)
36
37 ### Planned supported icon types ###
38 - Image (URL)
39
40 ### Compatible themes ###
41 Menu icons works with most of the themes out there, especially with popular ones like Twenty Seventeen or [Hestia](https://themeisle.com/themes/hestia/).
42
43 Development of this plugin is done on [GitHub](https://github.com/codeinwp/wp-menu-icons). **Pull requests welcome**. Please see [issues reported](https://github.com/codeinwp/wp-menu-icons/issues) there before going to the plugin forum.
44
45 All the code and sources is publicly available on [GitHub/wp-menu-icons](https://github.com/codeinwp/wp-menu-icons) for this plugin and
46 for the [SDK](https://github.com/Codeinwp/themeisle-sdk).
47
48
49 ## If you like this plugin, then consider checking out our other projects: ##
50
51 [CodeinWP Blog](https://www.codeinwp.com/blog/) – Designer's Guide To WordPress
52 [Revive.Social](https://revive.social) – Social Media Tools
53 [JustFreeThemes](https://justfreethemes.com) - Free WordPress Themes directory
54
55
56
57
58 ## Screenshots ##
59 1. Menu Editor
60 2. Icon selection
61 3. Twenty Fourteen with Dashicons
62 4. Twenty Fourteen with Genericons
63 5. Twenty Thirteen with Dashicons
64 6. Twenty Thirteen with Genericons
65 7. Settings Meta Box (Global)
66 8. Settings Meta Box (Menu)
67
68
69 ## Installation ##
70
71 1. Upload `menu-icons` to the `/wp-content/plugins/` directory
72 1. Activate the plugin through the *Plugins* menu in WordPress
73
74
75 ## Frequently Asked Questions ##
76
77 ### The icons are not showing! ###
78 Make sure that your active theme is using the default walker for displaying the nav menu. If it's using its own custom walker, make sure that the menu item titles are filterable (please consult your theme author about this).
79
80 ### The icon positions don't look right ###
81 If you're comfortable with editing your theme stylesheet, then you can override the styles from there.
82 If you have [Jetpack](http://wordpress.org/plugins/jetpack) installed, you can also use its **Custom CSS** module.
83 Otherwise, I recommend you to use the [Advanced CSS plugin](https://wordpress.org/plugins/advanced-css-editor/).
84
85 ### Some font icons are not rendering correctly ###
86 This is a bug with the font icon itself. When the font is updated, this plugin will update its font too.
87
88 ### How do I use css file from CDN? ###
89 You can use the `icon_picker_icon_type_stylesheet_uri` filter, eg:
90
91 /**
92 * Load Font Awesome's CSS from CDN
93 *
94 * @param string $stylesheet_uri Icon type's stylesheet URI.
95 * @param string $icon_type_id Icon type's ID.
96 * @param Icon_Picker_Type_Font $icon_type Icon type's instance.
97 *
98 * @return string
99 */
100 function myprefix_font_awesome_css_from_cdn( $stylesheet_uri, $icon_type_id, $icon_type ) {
101 if ( 'fa' === $icon_type_id ) {
102 $stylesheet_uri = sprintf(
103 'https://maxcdn.bootstrapcdn.com/font-awesome/%s/css/font-awesome.min.css',
104 $icon_type->version
105 );
106 }
107
108 return $stylesheet_uri;
109 }
110 add_filter( 'icon_picker_icon_type_stylesheet_uri', 'myprefix_font_awesome_css_from_cdn', 10, 3 );
111
112
113 ### Is this plugin extendable? ###
114 **Certainly!** Here's how you can remove an icon type from your plugin/theme:
115
116 /**
117 * Remove one or more icon types
118 *
119 * Uncomment one or more line to remove icon types
120 *
121 * @param array $types Registered icon types.
122 * @return array
123 */
124 function my_remove_menu_icons_type( $types ) {
125 // Dashicons
126 //unset( $types['dashicons'] );
127
128 // Elusive
129 //unset( $types['elusive'] );
130
131 // Font Awesome
132 //unset( $types['fa'] );
133
134 // Foundation
135 //unset( $types['foundation-icons'] );
136
137 // Genericons
138 //unset( $types['genericon'] );
139
140 // Image
141 //unset( $types['image'] );
142
143 return $types;
144 }
145 add_filter( 'menu_icons_types', 'my_remove_menu_icons_type' );
146
147
148 To add a new icon type, take a look at the files inside the `includes/library/icon-picker/includes/types` directory of this plugin.
149
150 ### I don't want the settings meta box. How do I remove/disable it? ###
151 Add this block of code to your [mu-plugin file](http://codex.wordpress.org/Must_Use_Plugins):
152
153 add_filter( 'menu_icons_disable_settings', '__return_true' );
154
155
156 ### How can I change the CSS class for hiding the menu item labels? ###
157 Add this block of code to your [mu-plugin file](http://codex.wordpress.org/Must_Use_Plugins):
158
159 /**
160 * Override hidden label class
161 *
162 * @param string $class Hidden label class.
163 * @return string
164 */
165 function my_menu_icons_hidden_label_class( $class ) {
166 $class = 'hidden';
167
168 return $class;
169 }
170 add_filter( 'menu_icons_hidden_label_class', 'my_menu_icons_hidden_label_class' );
171
172
173 ### How can I modify the markup the menu items? ###
174 Add this block of code to your [mu-plugin file](http://codex.wordpress.org/Must_Use_Plugins):
175
176 /**
177 * Override menu item markup
178 *
179 * @param string $markup Menu item title markup.
180 * @param integer $id Menu item ID.
181 * @param array $meta Menu item meta values.
182 * @param string $title Menu item title.
183 *
184 * @return string
185 */
186 function my_menu_icons_override_markup( $markup, $id, $meta, $title ) {
187 // Do your thing.
188
189 return $markup;
190 }
191 add_filter( 'menu_icons_item_title', 'my_menu_icons_override_markup', 10, 4 );
192
193
194 ### Can you please add X icon font? ###
195 Let me know via [GitHub issues](https://github.com/codeinw/wp-menu-icons/issues) and I'll see what I can do.
196
197 ### How do I disable menu icons for a certain menu? ###
198 Add this block of code to your [mu-plugin file](http://codex.wordpress.org/Must_Use_Plugins):
199
200 /**
201 * Disable menu icons for a menu
202 *
203 * @param array $menu_settings Menu Settings.
204 * @param int $menu_id Menu ID.
205 *
206 * @return array
207 */
208 function my_menu_icons_menu_settings( $menu_settings, $menu_id ) {
209 if ( 13 === $menu_id ) {
210 $menu_settings['disabled'] = true;
211 }
212
213 return $menu_settings;
214 }
215 add_filter( 'menu_icons_menu_settings', 'my_menu_icons_menu_settings', 10, 2 );
216
217
218 ### How do I add an icon pack from Fontello? ###
219 1. Create a new directory called `fontpacks` in `wp-content`.
220 1. Grab the zip of the pack, extract, and upload it to the newly created directory.
221 1. Enable the icon type from the Settings meta box.
222
223
224 ### I can't select a custom image size from the *Image Size* dropdown ###
225 Read [this blog post](http://kucrut.org/add-custom-image-sizes-right-way/).
226
227 ## Changelog ##
228 ### 0.12.5 - 2020-08-18 ###
229
230
231
232 ### 0.12.4 - 2020-07-13 ###
233
234 * Fix Font Awesome not loading
235
236
237 ### 0.12.3 - 2020-07-13 ###
238
239 * Fixed Menu Icons in Block Editor not working
240 * Fixed CWP links.
241
242
243 ### 0.12.2 - 2019-11-15 ###
244
245
246
247 ### 0.12.1 - 2019-11-15 ###
248
249 * Improve legacy compatibility
250
251
252 ### 0.12.0 - 2019-11-15 ###
253
254 * Fix issues with WordPress 5.3.
255
256
257 ### 0.11.5 - 2019-05-23 ###
258
259 * Sync composer dependencies with the latest version
260
261
262 ### 0.11.4 - 2018-12-10 ###
263
264 * fix issue with composer libraries.
265
266
267 ### 0.11.3 - 2018-12-10 ###
268
269 * Tested with WP 5.0
270
271
272 ### 0.11.2 - 2018-03-05 ###
273
274 * Improve popup sidebar layout.
275
276
277 ### 0.11.1 - 2018-02-24 ###
278
279 * Add recommendation boxes in the menu icon popup.
280
281
282 ### 0.11.0 - 2018-01-05 ###
283
284 * Change ownership to ThemeIsle.
285 * Improves compatibility with various ThemeIsle products.
286
287
288 ### 0.10.2 ###
289 * Compatibility with WordPress 4.7.0, props [Aaron K](https://github.com/aaronkirkham).
290
291 ### 0.10.1 ###
292 * Support RTL, props [ybspost](https://wordpress.org/support/profile/ybspost).
293
294 ### 0.10.0 ###
295 * Icon Picker 0.4.0
296 * Font Awesome 4.6.1
297 * Introduce `icon_picker_icon_type_stylesheet_uri` filter hook.
298 * Add `aria-hidden="true"` attribute to icon element
299
300 ### 0.9.3 ###
301 * Fix CSS conflicts
302
303 ### 0.9.2 ###
304 * Update Icon Picker to [0.1.1](https://github.com/kucrut/wp-icon-picker/releases/tag/v0.1.1).
305
306 ### 0.9.1 ###
307 * Fix support for Composer.
308
309 ### 0.9.0 ###
310 * Performance optimization.
311 * Modularisation. Developers: Take a look at the [Icon Picker](https://github.com/kucrut/wp-icon-picker) library.
312 * Bug fixes.
313 * Removed `menu_icons_{type_id}_props` filter.
314
315 ### 0.8.1 ###
316 * Fix disappearing icons from front-end when not logged-in, props [jj9617](http://profiles.wordpress.org/jj9617/)
317
318 ### 0.8.0 ###
319 * Update Dashicons
320 * Update Genericons to 3.4
321 * Update Font Awesome to 4.4.0
322 * Allow the plugin to be disabled for a certain menu
323 * Add new icon type: SVG, props [Ethan Clevenger](https://github.com/ethanclevenger91)
324 * Add new filter: `menu_icons_hidden_label_class`
325 * Add new filter: `menu_icons_item_title`
326
327 ### 0.7.0 ###
328 * Update Dashicons
329 * Fix annoying browser popup when navigating away from Nav Menus screen
330 * Work-around settings update with ajax
331
332 ### 0.6.0 ###
333 * Update Genericons to [3.2](http://genericons.com/2014/10/03/3-2/)
334 * Update Font Awesome to [4.2.0](http://fontawesome.io/whats-new/)
335
336 ### 0.5.1 ###
337 * Update Menu Item Custom Fields to play nice with other plugins.
338 * Add missing Foundation Icons stylesheet, props [John](http://wordpress.org/support/profile/dsl225)
339 * JS & CSS fixes
340
341 ### 0.5.0 ###
342 * New Icon type: Foundation Icons
343 * Add new Dashicons icons
344 * Various fixes & enhancements
345
346 ### 0.4.0 ###
347 * Fontello icon packs support
348 * New icon type: Image (attachments)
349
350 ### 0.3.2 ###
351 * Add missing minified CSS for Elusive font icon, props [zazou83](http://profiles.wordpress.org/zazou83)
352
353 ### 0.3.1 ###
354 * Fix fatal error on outdated PHP versions, props [dellos](http://profiles.wordpress.org/dellos)
355
356 ### 0.3.0 ###
357 * Add Settings meta box on Menu screen
358 * New feature: Settings inheritance (nav menu > menu items)
359 * New feature: Hide menu item labels
360 * New Icon type: Elusive Icons
361 * Update Font Awesome to 4.1.0
362
363 ### 0.2.3 ###
364 * Add new group for Dashicons: Media
365
366 ### 0.2.1 ###
367 * Fix icon selector compatibility with WP 3.9
368
369 ### 0.2.0 ###
370 * Media frame for icon selection
371 * New font icon: Font Awesome
372
373 ### 0.1.5 ###
374 * Invisible, but important fixes and improvements
375
376 ### 0.1.4 ###
377 * Fix menu saving
378
379 ### 0.1.3 ###
380 * Provide icon selection fields on newly added menu items
381
382 ### 0.1.2 ###
383 * Improve extra stylesheet
384
385 ### 0.1.1 ###
386 * Improve icon selection UX
387
388 ### 0.1.0 ###
389 * Initial public release
390