內容簡介
進階社交媒體圖示
這個外掛可以在你使用簡碼時顯示社交媒體圖示,該圖示可點擊並完全可自定義。
屬性
您可以使用以下屬性自定義外掛:
url – 點擊圖示時連接到的 URL,請使用 http://
src – 您希望使用哪個社交平台的圖示
id – 每個社交媒體平台有三種圖示類型。標準的正方形圖示不需要 ID,但要使用圓形圖示則使用 id=1,六邊形圖示使用 id=2。
height – 輸入高度的像素數量,標準值為 55 像素
width – 輸入寬度的像素數量,標準值為 55 像素
align – 將圖示對齊在右側位置
alt – 為圖示提供 alt 文字,有助於 SEO
類型
有三種類型的圖示。正方形、圓形和六邊形。
使用 id=1 顯示圓形圖示,使用 id=2 顯示六邊形圖示。
簡碼
該外掛使用簡碼來顯示圖示。例如 [social url=http://twitter.com src=twitter]。
其他範例包括:
[social url=http://www.facebook.com src=facebook height=50px width=60px]
[social url=http://www.instagram.com/user src=instagram align=middle]
[social url=http://www.linkedin.com src=linkedin id=1]
外掛標籤
開發者團隊
原文外掛簡介
Advanced Social Media Icons
This plugin shows a social media icon when you display a shortcode. The icon is clickable and fully customizable.
Attributes
You can customize the plugin with attributes:
url – Links the icon to a url when pressed, use http://
src – Which social platform you want to use
id – There are 3 types of icons for every social media platform. The standard square icon doesn’t need an id but for the round icon use id=1 and hex icon use id=2 .
height – Enter the amount of pixels of height, standard is 55px
width – Enter the amount of pixels of width, standard is 55px
align – Align the icon on the right position
alt – Give alt text with ur icon, good for SEO
Types
There are three types of icons. Square, round and hexagon.
To display round icons use id=1 and for hexagon use id=2 .
Shortcode
The plugin uses shortcodes to display the icons. For example [social url=http://twitter.com src=twitter] .
Other example are:
[social url=http://www.facebook.com src=facebook height=50px width=60px]
[social url=http://www.instagram.com/user src=instagram align=middle]
[social url=http://www.linkedin.com src=linkedin id=1]
