Skip to content

Instantly share code, notes, and snippets.

  • Save Andrii-Yukhymenko/c69e7013b1668e2ad75769060aa62f99 to your computer and use it in GitHub Desktop.
Save Andrii-Yukhymenko/c69e7013b1668e2ad75769060aa62f99 to your computer and use it in GitHub Desktop.
Стили для WP чтобы картинки в старом редакторе WP отображались по центру адекватно
//Добавлять эти стили нужно в Внешний вид -> Настроить -> Дополнительные стили
img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img,
.widget-container img {
max-width: 100%;
height: auto;
}
.aligncenter,
img.aligncenter {
clear: both;
display: block;
margin-left: auto;
margin-right: auto;
max-width: 100%;
height: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment