Fix wind theme thumbnail minimum width

wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Fri, 2014-08-29 09:32

I use Wind theme, it works well in creating thumbnails, but the albums pages for small images show so small, and it seems it doesn't have a minimum limit for it, and takes its size from the size of the images (attached example).. But there is a maximum size for thumbnails box which is about 229x302.

How can I change the minimum be the same as the maximum for the box, so for smaller images it shows small OK, but in a large box like the other thumbnails of large images?

Thanks

AttachmentSize
Image2.jpg50.35 KB
 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sat, 2014-08-30 13:01

I have no idea what that is the image you attached.
Back up and try re-downloading and replacing your Wind theme.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2014-08-30 20:42

Are you adding very small images? I don't think any theme was designed for icons for images.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sun, 2014-08-31 19:06
floridave wrote:
Are you adding very small images?

Oh. Now I think I get what's happening.

I'd have to take a look to see what css is at work (I don't remember if Gallery inserts inline decs or not), but you could try adding .g-item { width: 229px; height:302px; } to the bottom of the css.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2014-08-31 19:49

Seeing a real url in operation would help as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
wise_mike

Joined: 2008-10-21
Posts: 158
Posted: Tue, 2014-09-02 10:56

thanks.. I managed to fix it using the suggested line as follows:

Quote:
.g-item { width: 219px!important; height:302px!important; }

However it changes some format of other "normal" galleries in an undesired way..

Is there a way to make it for a specific gallery? or add a condition that it works only for certain url or paths of galleries?

Thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-09-02 16:22
Quote:
Is there a way to make it for a specific gallery?

Someplace in your custom theme on lets say .... page.html.php you could do something like:

  <? if ($theme->page_type == "collection"): ?>
	<? if ($item->title = "Test"): ?>
	<style>.g-item { width: 219px!important; height:302px!important; }</style>
	<? endif ?>
  <? endif ?>

If the item is a collection (album page) and title is Test then some css will be added.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team