I am newby on php. I re-write a code to add a custom class, but always got an error.
Parse error: syntax error, unexpected T_STRING in D:\MYWEB\InstantWP_4.3.1\iwpserver\htdocs\wordpress\wp-content\plugins\js_composer\include\templates\shortcodes\vc_column.php on line 41
My code is like this:
if (vc_shortcode_custom_css_has_property( $css, array('border', 'background') )) {
$css_classes[]='vc_col-has-fill';
}
$wrapper_attributes = array();
$css_class = preg_replace( '/\s+/', ' ', apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, implode( ' ', array_filter( $css_classes ) ), $this->settings['base'], $atts ) );
$wrapper_attributes[] = 'class="' . esc_attr( trim( $css_class ) ) . '"';
$output .= '<div ' . implode( ' ', $wrapper_attributes ) esc_attr( trim( vc_shortcode_custom_css_class( $css ) ) ). '>';
$output .= '<div class="vc_column-inner">';
$output .= '<div class="wpb_wrapper">';
$output .= wpb_js_remove_wpautop( $content );
$output .= '</div>';
$output .= '</div>';
$output .= '</div>';
echo $output;
Line 41 is like this:
$output .= '<div ' . implode( ' ', $wrapper_attributes ) esc_attr( trim( vc_shortcode_custom_css_class( $css ) ) ). '>';
Really appreciate for any help
Thank you
it should be like this: