Quote:
Originally Posted by MrGusMuller
You can create a shortcode for that.
Its easy shit.
Add something like this to ur /wp-content/themes/YOURTHEME/functions.php
PHP Code:
function myNote ($atts, $msg)
{
extract(shortcode_atts(array(
"atts" => '',
"msg" => ''
), $atts));
return '<div style="background-color:#f5f5b7; border-color:#e2d6ac; border-style: dashed; padding:10px;">'.$msg.'</div>';
}
add_shortcode('note', 'myNote');
then, in the post that you want to call, write [note msg="blalbla bla bla"] where you want the warning
|
My theme is throwing an error when I try this. Saying I can't modify the header.
Also flagging me when I try to create a custom field. Grrrrr.
It's a Woo Theme.