forked from LiveCarta/LiveCartaWP
@@ -618,11 +618,14 @@ blockquote {
|
||||
margin: 0 auto; } }
|
||||
.text-page.blog {
|
||||
margin: 0 auto;
|
||||
max-width: 800px; }
|
||||
.text-page.blog img.aligncenter {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto; }
|
||||
max-width: 830px;
|
||||
padding: 0 15px; }
|
||||
.text-page.blog img {
|
||||
max-width: 100%; }
|
||||
.text-page.blog img.aligncenter {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto; }
|
||||
|
||||
/* Icons. */
|
||||
@font-face {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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