This page is long and cumbersome. I am trying to find a plugin/hack that would put the images on this page in two columns to make it a bit easier to digest. Removing the <p>
tags doesn’t seem to accomplish that. I have all of the pictures hosted on S3 to keep the bandwidth usage down (hosted on home DSL). The gallery plugins I looked are kind of confusing and I really just want something really simple.
Here is a portion of my post I want to make two columns:
<p>
</p>
Any thoughts or ideas?
If it’s a usable option for you, you can change the output of
[caption]
to use<span>
tag instead of a<div>
.This how you’d change the output (to be added in theme functions.php) of the Caption shortcode:
The above function only changes the opening tags of a captioned image to be
<span>
instead of<div>
(see the last lines). To further optimize the Caption output and make it more readable as well, follow this excellent article by Justin Tadlock.Now here’s a pointer as to how your CSS should be:
It appears that each div is being given the class “alignnone.” If you change that to “alignleft” (select “left” when you upload the picture or edit the source), that will also float the pictures to the left, allowing for two columns.
Why don’t use CSS to align images ?
If I don’t miss something obvious on this case (if so, my bad), but CSS is meant for that (instead of changing source, change layout).
You could use ;
and, that’s it. Using Firebug I could see it’s not perfect (as there is images without captions on the page, so the design isn’t consistent) but it’s better.