Skip to content
Snippets Groups Projects
Commit f7377aa3 authored by lepittenger's avatar lepittenger
Browse files

Initial commit

git-svn-id: http://plugins.svn.wordpress.org/lbdesign-button-shortcode/trunk@1287342 b8457f37-d9ea-0310-8a92-e5e31aec5664
parent 0856cb68
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Plugin Name: LBDesign Button Shortcode
* Description: A simple button shortcode
* Author: Lauren Pittenger @ LBDesign
* Version: 1.0
* Last Updated: 2015-03-11
*/
function lbdesign_button($atts, $content = null) {
extract(shortcode_atts(array('link' => '#', 'color' => '', 'size' => ''), $atts));
return '<a class="button ' . $color . ' ' . $size . '" href="'.$link.'"><span>' . do_shortcode($content) . '</span></a>';
}
add_shortcode('button', 'lbdesign_button');
\ No newline at end of file
how to use:
[button link="http://something.com" color="red"]Call to Action![/button]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment