forked from LiveCarta/LiveCartaWP
fixes for marketing
This commit is contained in:
@@ -238,5 +238,13 @@ function get_lawcarta_ga_config(){
|
||||
return $res;
|
||||
}
|
||||
|
||||
add_filter( 'post_thumbnail_html', 'remove_width_attribute', 10 );
|
||||
add_filter( 'image_send_to_editor', 'remove_width_attribute', 10 );
|
||||
|
||||
function remove_width_attribute( $html ) {
|
||||
$html = preg_replace( '/(width|height)="\d*"\s/', "", $html );
|
||||
return $html;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user