Change attachment size in WP

I use gallery a lot in my wordpress posts, and am trying to alter the attachment size once you click the thumbnail. It goes through to a small image, which I would prefer to display larger. I’ve changed the image size to what I want it in the style sheet (550x500), but when I check the code in firebug it seems to get overridden by the attachment size =

<img width=“300” height=“200” alt=“” class=“attachment-medium” src=“-300x200.jpg”>

Strange thing is in gallery its always set to “extra large”. and in media settings ive set it to 550x500 but still comes out same.

Any ideas how I can change that attachment size to a 550x500 across the whole site?

link in my sig

cheers

Could you cite a specific example, so we don’t have to go searching? I’m not exactly sure what you mean. “Attachment” is probably the wrong word. Do you mean that when you click a picture in a post, you don’t like what’s happening?.. Explain the scenario as clearly as possible.

I say attachment as thats what its saying for image class=

<img width=“300” height=“200” alt=“” class=“attachment-medium” src=“-300x200.jpg”>

basically, once you click a thumbnail in the gallery, it goes through to the individual image, but its too small, need it larger.

Ah, I think I see what you mean. What is the process of uploading the picture? Do you have a choice of size settings?

In your CSS you have max-height and max-width rather than height and width. Try changing these and see how you go.

E.g.


#row .entry p img, #row .entry a img {
  border:medium none;
  float:left;
  margin:0;
 [COLOR="Blue"] height:500px;
  width:550px;[/COLOR]
  padding:9px;
}

PS unless those are the exact proportions, just set width OR height.

Tried that but it blows them up to full size in the gallery thumbnails. You do have the choice of settings when uploading, which is always set to extra large, yet doesnt appear that way.

just noticed that by changing the px in css

max-height:500px;
max-width:550px;

this alters the images on the categories pages, not the gallery pics. For those smaller pics I want to make larger it seems governed by the img class -

<img width=“300” height=“200” alt=“” class=“attachment-medium” src=“-300x200.jpg”>

but like i say its always automatically selected as extra large… confused

You can change the size of the thumbnails under: settings > media, in the dashboard.

Doesnt make any difference at all when I alter the sizes in settings.

Ah yes. Well, the thing is to target only the enlarged images, which are contained within a <p> element. So:


#row .entry p img, #row .entry a img {
  border:medium none;
  float:left;
  margin:0;
  padding:9px;
}

#row .entry p img {
  height:500px;
  width:550px;
}

That will target just the enlargements. :slight_smile:

thanks a lot Ralph, thats got it. appreciate your help and time.