內容簡介
這個外掛只會在 functions.php 檔案中添加一個簡單的短代碼,以將最新版本的 MD Iconic Font css(v 2.2)嵌入其中。
安裝後,您可以前往 http://zavoloklom.github.io/material-design-iconic-font/cheatsheet.html 查看要使用的圖標代碼。只需點擊圖標,然後將代碼複製並粘貼到您想要使用它的地方即可。
您也可以使用短代碼 [mdiconic] 添加圖標。此短代碼具有四個屬性:
aclass -> 在 ‘a’ 標記中使用的類
target -> ‘a’ 標記的目標(_blank、_self、_parent、_top)
href -> 在 ‘a’ 標記中使用的鏈接
iclass -> 在 ‘i’ 標記中使用的類
** 範例 **
[mdiconic aclass=”” target=”” href=”” iclass=””]
[mdiconic iclass=”zmdi-compass zmdi-hc-3x zmdi-hc-spin”]
[mdiconic iclass=”zmdi-facebook-box” href=”http://www.fb.com/jumptoweb” target=”_blank”]
注意:要查看可用於 iclass 參數的更多範例,請查看此頁面 http://zavoloklom.github.io/material-design-iconic-font/examples.html
注意:要添加任何短代碼或標記,您應使用文本編輯器(而不是 tinymce)
外掛標籤
開發者團隊
② 後台搜尋「Material Design Iconic Font Integration」→ 直接安裝(推薦)
原文外掛簡介
This plugin just add a simple shortcode to the functions.php file, which embed the latest version of the MD Iconic Font css (v 2.2).
Once installed, you can go to http://zavoloklom.github.io/material-design-iconic-font/cheatsheet.html and check the code of the icon you want to use. Just click on the icon and copy and paste de code wherever you want to use it.
You can also add an icon using the shortcode [mdiconic]. This shortcode has four attributes:
aclass -> classes to use in the ‘a’ tag
target -> target of the ‘a’ tag (_blank, _self, _parent, _top)
href -> link to use in the ‘a’ tag
iclass -> classes to use in the ‘i’ tag
** Examples **
[mdiconic aclass=”” target=”” href=”” iclass=””]
[mdiconic iclass=”zmdi-compass zmdi-hc-3x zmdi-hc-spin”]
[mdiconic iclass=”zmdi-facebook-box” href=”http://www.fb.com/jumptoweb” target=”_blank”]
NOTE: To see more examples you can use in the iclass parameter, check this page http://zavoloklom.github.io/material-design-iconic-font/examples.html
NOTE: To add any shortcode or tag you should use the text editor (not the tinymce)
