Gabz
Gabz

Things I wish I knew how to:

Make a group of pictures to post as a grid on my blog.

|
Embed
Progress spinner
In reply to
jsonbecker
jsonbecker

@lmika @gaby A few updates:

  1. You don’t need to use the short code anymore. You can just use the Markdown image syntax if you want. This is great for one photo, but works for galleries too. The trick for that gallery is you need a blank line after the first div and a blank before the closing div.
  2. You don’t need to specify the gallery if you only have one gallery in your post. I now by default add a unique identifier to the gallery based on the post ID that should keep the gallery the same for the post. If you want two separate galleries in the post, the above works.

The div is just a way to get the built in style for building the grid– you can use your own CSS. You’re only getting 2 columns because of the width of your blog post column and the default size in the CSS I include. With a wider blog post (or smaller setting for your photos) you could get wider grids if you want.

My favorite thing with this plug in is that every image that uses Markdown syntax will now click to expand into a lightbox– it’s quite nice compared to the standard image.

|
Embed
Progress spinner