Easy: Just add the following code to either a post or page:
[DKB url="http://dkoated.com/" text="Main Button Text" desc="Sub-headline of button" title="Link SEO title" type="large|normal|small|extrasmall" color="black|white|grey|red|green|blue|orange|yellow|pink|brown" width="100" opennewwindow="yes|no" nofollow="yes|no"]. As you may see in the code, there are many options to choose from. Just remove the ones you don't want. All options you choose not to use, will default to their default settings.
No. Actually there are no required attribute fields for the shortcode. Theoretically, the minimum code you need to use is:
[DKB], but that wouldn't make a lot of sense would it? I highly recommend to at least use the "url" and "text"-attributes:
[DKB url="http://dkoated.com/" text="Your headline here"]. Everything else, such as the attribute fields "title", "type", "color", "width", "opennewwindow" and "nofollow" are optional and if unspecified, these attribute fields will default to their default setting.
Yes. If you want to let's say only specify the "width" and "nofollow" attributes, you would use this code:
[DKB url="http://dkoated.com/" text="Your headline here" width="200" nofollow="yes"]. All other unspecified attributes will default to their default settings.
If you are using a webkit-based browser such as Safari or Chrome and you have the plugin WP-Minify installed, you have to explicitly exclude the file 'dkoated-cta-buttons.css' from minification within the WP-Minify options. The css file itself is already optimized and would not benefit from a minification anyway (perhaps by only a few bytes).
Specify the exact width of the button in pixels. Just add a number (without 'px') and watch the button grow (or get smaller). Be cautious though, the specified size will, no matter what, be set and displayed. If you specify a longer text to be displayed within the button through either "text" or "desc", the text will be cut off if the width of the button is smaller.
Easy. Add your hex-color including the '#'-sign in the admin panel and use the following shortcode
[DKB url="http://dkoated.com/" text="Your headline here" <strong>custom="yes"</strong>]. Please note, that the use of the attribute "custom" always takes preference before the attribute "color".
Head over to DKOATED CTA Buttons WordPress Plugin Page and leave some feedback. I'll try to help out as much as I can, alright? ;)
Requires: 2.9.2 or higher
Compatible up to: 3.4.2
Last Updated: 3 years ago
Active Installs: 2,000+
Got something to say? Need help?