View Single Post
Old 02-27-2011, 02:57 PM  
DWB
Registered User
 
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
Quote:
Originally Posted by MrGusMuller View Post
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.
DWB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote