开发者 | jmlapam |
---|---|
更新时间 | 2014年6月10日 22:11 |
PHP版本: | 3.9.1 及以上 |
WordPress版本: | 3.9.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[dashicon name="smartphone" size="3" color="#f83123" class="myclass"]
On post edits use the admin UI (tinymce to set your icon) On widget and menu pages you have a help button (on the top right of the screen), when clicking on this button it slides a pannel with multiple tabs. You'll find all the icons available.
Just use the text parameter like this :
[dashicon name="twitter" text="share on Twitter"]
It won't change anything for you but it can improve experience for people using assistive technologies such as VoiceOver
That's too bad. Maybe your theme missed it. To avoid this just put the following code in your CSS :
.screen-reader-text { position: absolute; left: -7000px; overflow: hidden; }
You might add some stylesheet for IE8 and put in here :
.ds-fallback-text .dashicons:before { content: ''; }
Then you might add a little bit of JavaScript.
Please check you WP version, Dashicons have been updated with WP 3.9
The plugin activates shortcodes in widget text.
In this very very particular case, you can use this great trick : put the shortcode in double [] like that :
[[myshortcode]]
Source
add_filter('jmds_markup', 'your_callback');