[Resolved] Native WP Gallery has gone vertical

Home Forums Support Native WP Gallery has gone vertical

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #117025
    Justin Petersen

    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.

    http://www.boostupsales.com

    #117026
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #117117
    Tom
    Lead Developer
    Lead Developer

    1.3.03 was just released with fixes this.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.