// Add Shortcode function themedesigner_iconbox( $atts , $content = null ) { // Attributes $atts = shortcode_atts( array( 'title' => '', 'icon' => '', 'style' => 'style1', ), ); $out = '<div class="service '.$style.'"><i class="fa fa-'.$icon.'"></i><h5>'.$title.'</h5><p>'.do_shortcode($content).'</p></div>'; return $out; } add_shortcode( 'iconbox', 'themedesigner_iconbox' );