开发者 |
gingersoulrecords
ideag |
---|---|
更新时间 | 2017年8月6日 06:20 |
捐献地址: | 去捐款 |
PHP版本: | 4.6 及以上 |
WordPress版本: | 4.8 |
/wp-content/plugins/soulbuttons
directory, or install the plugin through the WordPress plugins screen directly.Settings -> SoulButtons
screen to configure the plugin[soulbutton]
shortcodeUse [soulbutton]
shortcode or a button in WP Editor to generate it.
The same way you use other WordPress shortcodes. Just wrap your button text with [soulbutton]
and [/soulbutton]
tags. You can use several different attributes to customize appearance and functionality of the button. See them in the next question.
Sample usage: [soulbutton link="http://google.com"]Go to Google[/soulbutton]
[soulbutton]
shortcode have?Here is the list of available attributes:
style
- allows to choose button appearance. Available styles currently include solid
(default), rounded
, border
and transparent
.link
- where button link should point to. Defaults to #
.href
- an alias of link
.css
- custom inline CSS styles.class
- to add a custom class to the button.id
- to add a custom id attribute to the button.color
- the color of the button (to override global setting).text
- the color of the text in the button (to override global setting).border
- the color of the border of the button (to override global setting).track
- should button click be recorded on Google Analytics. true
/false
to override global setting, custom string to set custom button name.icon
- allows to insert a Dashicons / Font Awesome icon to be inserted into the button. Define using full name of the icon, i.e. dahsicons-arrow-left
or fa-shopping-cart
.icon-position
- set the icon position within the button. before
(default) - icon is inserted before button content. after
- icon is inserted after button content.hover
- defines additional hover effects. Space-separated list. Available effects include icon-left
, icon-right
, icon-top
, icon-bottom
.align
- changes text alignment in the button. Available options - center
(default), left
, right
.padding
- changes button padding.border-width
- changes button border-width.width
- changes button minimal width.scrollto
- adds a visual "Scroll To" effect for anchor links (true/false).scrollto-speed
- set scrollto effect speed (default 0.5).scrollto-offset
- add a vertical offset for scrollto effect (default 0).offcanvas-target
- define an element (via CSS selector) to take out of DOM and animate as off-canvas item.offcanvas-effect
- define which effect should be used the off-canvas target. Available effect include fadeInFromCenter
, slideOverFromRight
(default), pushOverFromRight
offcanvas-open
- determine if offcanvas element should initially be in open or closed state (default - false).prevent-default
- allows to disable default action of the link (i.e. appending hash values to url) (default -false).prevent-default
attribute (#27);offcanvas-open
attribute (#29) to allow initializing off-canvas element in open state;target
/target-effect
attributes to offcanvas-target
/offcanvas-effect
(#31);css
attribute values not being applied correctly (#32);target
/target-effect
attributesscrollto-speed
attributescrollto-offset
attributescrollto
attributefont-size:inherit
for Dashicons