Just creating a shortcode that creates a box around selected content. I've been following the tutorial here:
http://www.tuttoaster.com/how-to-use-style-and-implement-wordpress-shortcodes/It kind of works, but I'm getting an unwanted ';' at the beginning of the text in the box.
Here's the code for the functions.php file:
function box($atts, $content = null) {
return '<div class="box">;'.$content.'</div>';
}
add_shortcode('box', 'box');
I've played around with it a bit, and did mange to lose the additional character but it also broke the WP admin as a side effect.
Any help appreciated
