Blogger no gallery feature. You add images one by one vertical - long post, slow. Gallery = 2-3 images per row, grid, looks like portfolio, fast.
In Post #126, add gallery in Blogger.
Step 1: Add Gallery CSS Once
- Blogger → Theme → Edit HTML
- Find
]]></b:skin> - Paste above it:
/* Gallery Post 126 */
.gallery{display:grid;gap:10px;margin:20px 0;}
.gallery-2{grid-template-columns:1fr 1fr;}
.gallery-3{grid-template-columns:1fr 1fr 1fr;}
.gallery-4{grid-template-columns:1fr 1fr 1fr 1fr;}
.gallery img{width:100%;height:200px;object-fit:cover;border-radius:10px;transition:0.3s;cursor:pointer;}
.gallery img:hover{transform:scale(1.02);box-shadow:0 6px 18px rgba(0,0,0,0.15);}
@media(max-width:600px){
.gallery-3,.gallery-4{grid-template-columns:1fr 1fr;}
.gallery img{height:150px;}
}
@media(max-width:400px){
.gallery-2,.gallery-3,.gallery-4{grid-template-columns:1fr;}
.gallery img{height:auto;}
}
- Save theme
Step 2: Gallery HTML - Copy Paste in Post HTML Mode
1. 2 Column Gallery (Best for Before/After)
<div class="gallery gallery-2"> <img src="IMAGE1.jpg" alt="Before" /> <img src="IMAGE2.jpg" alt="After" /> </div>
2. 3 Column Gallery (Most Used - Portfolio)
<div class="gallery gallery-3"> <img src="IMAGE1.jpg" alt="Template 1" /> <img src="IMAGE2.jpg" alt="Template 2" /> <img src="IMAGE3.jpg" alt="Template 3" /> <img src="IMAGE4.jpg" alt="Template 4" /> <img src="IMAGE5.jpg" alt="Template 5" /> <img src="IMAGE6.jpg" alt="Template 6" /> </div>
3. 4 Column Gallery (For Many Screenshots)
<div class="gallery gallery-4"> <img src="1.jpg" alt="1"/> <img src="2.jpg" alt="2"/> <img src="3.jpg" alt="3"/> <img src="4.jpg" alt="4"/> </div>
4. Gallery with Captions (Combine Post #125 + #126)
<div class="gallery gallery-3"> <figure style="margin:0;"><img src="1.jpg" alt="Home"/><figcaption style="font-size:12px;text-align:center;margin-top:4px;">Home Page</figcaption></figure> <figure style="margin:0;"><img src="2.jpg" alt="Post"/><figcaption style="font-size:12px;text-align:center;margin-top:4px;">Post Page</figcaption></figure> <figure style="margin:0;"><img src="3.jpg" alt="Mobile"/><figcaption style="font-size:12px;text-align:center;margin-top:4px;">Mobile View</figcaption></figure> </div>
Step 3: Inline No Theme Edit Version
<div style="display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0;"> <img src="IMAGE1.jpg" style="width:100%;border-radius:10px;" /> <img src="IMAGE2.jpg" style="width:100%;border-radius:10px;" /> </div>
Step 4: Where to Use Gallery?
- Template posts: Show 6 screenshots in 3 column gallery (Post #13-20)
- Before/After SEO posts: 2 column gallery
- Portfolio page: Your work gallery
- Next Post #127: Add lightbox - click gallery image opens big popup
Post #126 Complete - Gallery without plugin.
Next Post #127: How to Add Lightbox Effect in Blogger Images - click to enlarge popup.
0 Comments