you can find the gallery css in wp-includes/media.php
Okay, I give!
I’ve tried changing columns in wp-includes/media.php to:
‘columns’ => 4,
…but I’m still getting 3 columns. At the moment my thumbnails are 100px wide so I’m just making sure this will work before I adjust them down to 90px.
I’ve also changed:
.gallery-item {
float: left;
margin-top: 0px;
text-align: center;
width: {$itemwidth}%;
}
.gallery img {
border: 0px solid #cfcfcf;
}
…and I’m getting lots of margin (on all sides). I’ve tried adding “margin: 0px;” below “margin-top” with no results as well…
Anyone have any ideas?
Does anyone know how to adjust the number of column (and the margins) for WP Galleries when the above doesn’t work?
transat99,
Did you ever figure out how to solve your problem? I have been trying to do the exact same thing with no luck.
thegreatgatzby-
I just happened to look see this the day after you posted…
I did figure it out about a month ago and should have posted it here at that time. In my theme’s style.css, I added:
.gallery {
margin: 0px;
line-height: 0em;
}
.gallery-item {
float: left;
margin-top: 0px;
text-align: center;
}
.gallery img {
border: 0px;
margin:0px;
padding: 0px;
}
.gallery-caption {
margin-left: 0px;
}
I believe that it “overrode” any conflicting CSS in my plugins (and everywhere else) and removed all spacing between thumbnails.
Funny thing is — after I got it to work, I decided that I didn’t like it (for my thumbnails)! Hope it works for you. 🙂