Support » Plugin: Div Shortcode » Class for created divs

  • It would be great to have a special class (e.g. “div-shortcode”) added into every div created by this shortcode to make it stand out among other divs.

Viewing 1 replies (of 1 total)
  • Thread Starter Kirr


    I’ve just slightly tweaked plugin’s php for myself with this:

    $return = '<div class="div-shortcode ';
    if ( !empty( $atts['class'] ) )
        $return .= esc_attr( $atts['class'] );
    $return .= '"';
Viewing 1 replies (of 1 total)
  • The topic ‘Class for created divs’ is closed to new replies.