Reply To: Custom Download Button on WordPress

#2743
Ron
Keymaster

Important Text Block

On functions.php

function short_important( $atts, $content=null, $code="" ) {
    extract(shortcode_atts(array(
        "style" => '',
        "title" => ''    
    ), $atts));
    return '<div class="short-important" title="'.$title.'" style="'.$style.'">' . $content . '</div>';
}
add_shortcode('important', 'short_important');

CSS Style

.short-important {
   background-image: url("bg-honeycomb.png");
   background-color: #FBC22A; 
   border: 1px solid #888; 
   padding: 8px;
}

Usage

[important]Sample Text[/important]