Archived topic
Native WP Gallery has gone vertical
2 replies · Started by Justin Petersen on June 27, 2015
Viewing posts 1–3 of 3
Using GeneratePress with a few add-ons. Seemingly "overnight" my 4-image WP native gallery on my home page went from horizontal to vertical, but only in Chrome and Safari. It's fine in Firefox, and previews ok/horizontal on live preview on other themes.
Grr, sorry about this. Big updates suck, almost impossible to spot all bugs.
Add this for now until new update is out:
.gallery {
margin-bottom: 1.5em;
}
.gallery-item {
display: inline-block;
text-align: center;
vertical-align: top;
width: 100%;
}
.gallery-columns-2 .gallery-item {
max-width: 50%;
}
.gallery-columns-3 .gallery-item {
max-width: 33.33%;
}
.gallery-columns-4 .gallery-item {
max-width: 25%;
}
.gallery-columns-5 .gallery-item {
max-width: 20%;
}
.gallery-columns-6 .gallery-item {
max-width: 16.66%;
}
.gallery-columns-7 .gallery-item {
max-width: 14.28%;
}
.gallery-columns-8 .gallery-item {
max-width: 12.5%;
}
.gallery-columns-9 .gallery-item {
max-width: 11.11%;
}
.gallery-caption {
display: block;
}
.gallery-item img {
vertical-align: bottom;
}
.gallery-icon {
padding: 5px;
}
1.3.03 was just released with fixes this.
This archived topic is closed to new replies.
