Button Shortcode
-
After research, I found that this code is used for shortcode for button
function sButton($atts, $content = null) { extract(shortcode_atts(array('link' => '#'), $atts)); return '<a href="'.$link.'"><span>' . do_shortcode($content) . '</span></a>'; } add_shortcode('button', 'sButton');
This gives the output link with dofollow.
But I want to have another shortcode for button that has rel=”nofollow”. Is it possible to 2 such codes in custom_functions.php.
If so please help me to have such code.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Button Shortcode’ is closed to new replies.