內容簡介
只需將圖示分別上傳到您的佈景主題的「images/csprite」資料夾。
前往 WordPress 儀表板 > 工具 > CSprite > 重建以重建精靈。
CSprite 將會將所有圖像結合成一個圖形,繁重的工作將由它完成。
它會在要排入佇列的樣式表中為您建立所有類別。
然後,您可以像這樣在佈景主題中使用精靈:
<div class="csprite csprite-creatomatic_logo"></div>
它會根據圖像名稱命名類別,因此請確保它們是唯一的。
更多關於此外掛的資訊請參閱 http://www.creatomatic.co.uk/csprite-automatic-image-sprite-tool-wordpress/
外掛標籤
開發者團隊
原文外掛簡介
Simply upload your icons individually to your theme’s “images/csprite” folder.
Go to WordPress Dashboard > Tools > CSprite > Rebuild to rebuild the sprite.
CSprite will do all the hard work of combining all the images into a single graphic.
It will create all the classes for you in the enqueued stylesheet.
You can then simply use the sprite in your theme like this:
It will name the classes according to the image names, so make sure that they are unique.
Read more about this plugin at http://www.creatomatic.co.uk/csprite-automatic-image-sprite-tool-wordpress/
