Announcement

#1 2010-05-25 00:43:19

Aramis
Guest

[resolved] Thumbnail spacing

Sylvia theme put as many thumbnails on page as it can. But I'd rather like them to have more space between... How to change it? Make some spacing or padding around?

 

#2 2010-06-01 01:51:12

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] Thumbnail spacing

Sorry for the late reply, but can you be more precise about your request Aramis?

Are you talking about thumbnails inside a category like on http://piwigo.org/demo/index.php?/category/America or the list of categories like on http://piwigo.org/demo/index.php?/category/14 ?

(a screenshot with red arrows to tell where you need space would be very useful) and tell us which theme your currently using, it would help :-)

Offline

 

#3 2010-06-01 14:13:30

Aramis
Guest

Re: [resolved] Thumbnail spacing

Now it's look like this:

http://oneblade.pl/index.php?/category/1

I'd like it to look more like in the red box:

http://oneblade.pl/galleries/screen01.jpg

I mean less thumbnails in the row (in category view). I can make them bigger, but it does not affect space between them. Green arrow indicates place when I'd like to have more space.

Thank you and sorry for my previous question. I'll try to be more precise.

 

#4 2010-06-01 14:31:51

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] Thumbnail spacing

OK I see, it's much more precise now :-) (and easier to answer, of course).

First, I see that you have customized the "Sylvia" theme. Please, take the time to create another theme and overload some parameters. For example, you should create the theme "Aramis" (obviously, you like French swords ;-)

In the Aramis/themeconf.inc.php you should have something like:

Code:

<?php
/*
Theme Name: Aramis
Version: 1
Description: Dark background, blue decorations; derived from Sylvia
Theme URI: http://piwigo.org/ext/extension_view.php?eid=???
Author: Marek Jeziorski
Author URI: http://oneblade.pl
*/
$themeconf = array(
  'name'         => 'Aramis',
  'parent'        => 'Sylvia',
  'icon_dir'      => 'themes/Aramis/icon',
);
?>

Then copy the themes/Sylvia/icon directory as themes/Aramis/icon and restore the original Sylvia icons.

Then create a themes/Aramis/themes.css file:

Code:

.content ul.thumbnails span.wrap1 {margin-left:15px;}

It is important that you don't modify the standard files (such as Sylvia themes) to avoid any loss during next upgrade (upgrades assure you're running with the latest and most secure version of Piwigo)

Offline

 

#5 2010-07-05 20:35:52

Aramis
Guest

Re: [resolved] Thumbnail spacing

Thank you very much, I did as you advice, and it works great! Thank you once more and sorry for the delay in answer, I've got a lot of my regular job to do (no time for the photography :-( ). Problem solved.

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact