fixes for marketing

This commit is contained in:
Jerry
2020-09-02 12:56:53 +03:00
parent 3a4080c4c9
commit 9462e0af00
4 changed files with 18 additions and 7 deletions

View File

@@ -618,11 +618,14 @@ blockquote {
margin: 0 auto; } } margin: 0 auto; } }
.text-page.blog { .text-page.blog {
margin: 0 auto; margin: 0 auto;
max-width: 800px; } max-width: 830px;
.text-page.blog img.aligncenter { padding: 0 15px; }
display: block; .text-page.blog img {
margin-left: auto; max-width: 100%; }
margin-right: auto; } .text-page.blog img.aligncenter {
display: block;
margin-left: auto;
margin-right: auto; }
/* Icons. */ /* Icons. */
@font-face { @font-face {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -238,5 +238,13 @@ function get_lawcarta_ga_config(){
return $res; 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;
}