Merge pull request #4211 from Jerryby/wordpress

fixes for marketing
This commit is contained in:
gregory-p
2020-09-02 12:59:17 +03:00
committed by GitHub
4 changed files with 18 additions and 7 deletions

View File

@@ -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

View File

@@ -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;
}