开发者 | wpcmsdev |
---|---|
更新时间 | 2014年10月24日 08:20 |
PHP版本: | 3.9 及以上 |
WordPress版本: | 4.0 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
display: none
in the bundled CSS, which can have negative SEO effects as well.
There will be an editor button added to your post editor toolbar, allowing you to quickly insert the example code of any of the shortcode elements into your editor window.
Finally, we've included a LESS CSS source file, so if you're into that type of thing, you can easily change the plugin's colors to your liking merely by adjusting a few LESS variables and re-compiling.
We'd love to hear your feedback. Let us know what you think! Also be sure to sign up for our email newsletter at wpcmsdev.com.
/wp-content/pugins/
.wpcmsdev-easy-responsive-shortcodes
to your theme setup function:
add_theme_support( 'wpcmsdev-easy-responsive-shortcodes' );
Also, if your theme already includes the Font Awesome icon set, you can indicate that by declaring support for it in your theme, in which case the plugin will not attempt to load its own bundled copy of Font Awesome in addition to yours.
add_theme_support( 'font-awesome-icons' );
A: You can use the following colors:
Here is the syntax for each of the shortcodes, along with an example. In addition to the parameters listed below, each shortcode can accept a "class" parameter, allowing you to give any element a unique CSS class. Required parameters are marked with an asterisk.
Shortcodes: accordion
, accordion_item
Accordion Item Parameters:
[accordion] [accordion_item title="Accordion Item 1 Title"] Accordion item 1 content goes here. [/accordion_item] [accordion_item title="Accordion Item 2 Title"] Accordion item 2 content goes here. [/accordion_item] [accordion_item title="Accordion Item 3 Title"] Accordion item 3 content goes here. [/accordion_item] [/accordion]
Shortcode: alert
Parameters:
[alert color="red" icon="exclamation-circle"] Alert text goes here. [/alert]
Shortcode: box
Parameters:
[box title="Box Title"] Box text goes here. [/alert]
Shortcode: button
Parameters:
nofollow
_blank
to open the link in a new window.[button color="red" url="http://domain.com"]Click Me![/button]
Shortcode: call_to_action
Parameters:
[call_to_action color="red" button_text="Go Now!" button_url="http://domain.com" button_color="black"] Call-to-action text goes here. [/call_to_action]
Shortcode: clear_floats
Example:
[clear_floats]
Shortcodes: columns
, column
Column Parameters:
[columns] [column width="one-third"] Column 1 text goes here. [/column] [column width="one-third"] Column 2 text goes here. [/column] [column width="one-third"] Column 3 text goes here. [/column] [/columns]
Shortcode: highlight
Parameters:
[highlight color="yellow" text_color="red"]Highlighted text content goes here.[/highlight]
Shortcode: icon
Parameters:
[icon id="soccer-ball" color="orange"]
Shortcodes: tabs
, tab
Tab Parameters:
[tabs] [tab title="Tab 1 Title"] Tab 1 text goes here. [/tab] [tab title="Tab 2 Title"] Tab 2 text goes here. [/tab] [tab title="Tab 3 Title"] Tab 3 text goes here. [/tab] [/tabs]
Shortcode: toggle
Parameters:
clear_floats
shortcode