Siriux theme: Adding photo titles to thumbnails
|
noregt
Joined: 2005-11-09
Posts: 8 |
Posted: Tue, 2005-12-20 17:10
|
|
Dear people, I've been working around in the Siriux theme to get it adapted. I have been able to narrow it down to this code in album.tpl: Quote:
<div class="gallery-thumb"> As you can see I added the title to it. Now two things happen: In the theme.css file, this is the holder for the thumbnail: Quote:
.gallery-thumb { Normally I place the text inside the holder, make it wider, and force the image to the left(in css without tables that is). I tried to make it wider with: Quote:
width: 200px; But nothing happens Can anyone help me with this: The site I'm working on: Thanks for all your kind help! |
|

Posts: 8601
{$child.title|markup} instead of $theme.item.title
Posts: 8
Thanks mindless, that works. I solved the css issue myself, so here it is for anyone who is looking for the same thing (I found the same question on Nico Kaiser's site and also one here)
With the web-developer plugin from Firefox I noticed that the width of the .gallery-thumb is set inline (and therefore overwrites the attached theme.css)
This property is done in the theme.tpl document:
I changed it in
.gallery-thumb {ldelim} width: {$thumbCellSize+120}px; height: {$thumbCellSize}px; {rdelim}
And that solves the problem.
Last I had to make some more adjustments to the theme.css file to make it perfect, and also adjust the album.tpl for the main album overview page.
The result is here:
http://www.ventoux.nl/fotos/main.php?g2_view=core.ShowItem&g2_itemId=294
Posts: 15
Hi! I've followed along with this and similar threads but i'm stuck.
I'm a total newbie when it comes to coding, so please go easy
I'd like two things to happen... I want my images to align at the bottom edge rather than the top (when viewing all of my thumbnails) then my captions will all line up when a line has one or more portrait oriented pictures. The other thing I want is a bit more of a gap between my caption and the photo underneath it.
Please take a look at THIS.
Thanks people!
Posts: 8
I only can find the time to give you a few hints.
If you want the image to appear aligned at the bottom, then you have to give them a css bottom property. also, you need to give the thumb a bottom margin, in order to keep the text away from the image. In theme.css:
In the theme.tpl doc you need to change the total height of the image holder:
Note that this is just guesswork, so you have to take a close look at how you work with css. I didn't test this.
Posts: 1
kindly send me your pics.
Posts: 15
Hi!
Thanks very much, there's now ample space for the captions below my photos..
It looks pretty good as is, so I might not change it, but aligning the photos by the bottom edge didn't work using this:
It's ok if you don't have time.. I like the way my gallery looks now.
Many thanks!
Beren
Posts: 8
In theme.tpl:
Gives you a little bit of extra space for your text.
I don't know why bottom:20px; won't work, just tried it, but no respons.
Posts: 15
Hey there..
It's at 55px now... the reason it was cramped was because I messed something up in theme.css.
It's displaying nicely now. - It would be ideal if siriux detected how much space the captions took up and adjusted accordingly.
Oh well, can't have everything
Thanks for all your help!!
B
Posts: 15
Sorry, one last thing..
My site is behaving funny when using the links at the bottom when i'm on the last page of an album
Check this out
See how if you expand the DHTML down the bottom, the page number moves down one line which moves everything else down?
Sorry, i'm still very vanilla with web dev stuff... any ideas people?
Posts: 8
My site does the same, I took it for granted. You could try to change the alignment of the div block-core-navigator. Something like
right: 20px;
maybe that will help?
Posts: 15
Sorry for the long gap between posts. I've been on holiday..
That didn't help unfortunately... I'll keep working on it any post again if I come up with a solution.
Posts: 29
I have been having this problem but still have not been able to fix it with this. When I added the code {$child.title|markup} on the album page (seems like with this I finally got it in the write place on the page) it is putting the summary under the main page which is not what I want. I want it on the page with the thumbnails of the photos (not the main albums).
This is what I mean for my structure I have:
main page has links to album 1. Open album 1 and you get all the thumbnails for the photos in the album. this is where I want the captions.
Posts: 5
If any one has scullygirl818's problem. You need to replace the code with the second <div class="gallery-thumb">
in album.tpl Looks the same.
Posts: 18
Here is what I changed to get it to work.
** create a local folder and copy album.tpl Then change the following. I added whats in bold.
Ed
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Gallery version (2.2.3)
WPG2 (3.0.2)
wordpress (v2.3.1)
PHP version (5.2.4 apache)
Webserver (Apache)
Database (mysqlt 4.1.22-standard)
Activated toolkits (ImageMagick, Thumbnail)
Operating system (Linux)