// Add Shortcode function intro_section( $atts , $content = null ) { // Attributes $atts = shortcode_atts( array( 'class' => '', ), ); return '<div class="intro-section' . $class . '">' . $content . '</div>'; } add_shortcode( 'intro', 'intro_section' );