Page specific styling for galleries
-
Ok so I have setup my galleries to display the title above the thumbnail and the description below the thumbnail. This can be seen here https://westminster-hk.com/westminster-clocks
I achieved this by adding these to the gallery.php template;
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<strong><span><?php echo $image->alttext ?> <span><?php echo $image->caption ?></span></strong>
and I added some styling (mainly the height) to the nggallery.css file;
.ngg-gallery-thumbnail-box { font-family: "Helvetica", Verdana, sans-serif; font-size: 95%; border-top: 5px solid #0F3236; padding-top: 15px; float: left; width: 295px; <strong>height: 535px</strong> }
But now what I would like to do is reverse this so that on a specific page there is no styling, so the title and description are removed and the height back to default. So the end result is it just shows the thumbnail with title.
I have been trying to figure this out forever now and cant find a solution.
Does anybody have a solution for this please?
- The topic ‘Page specific styling for galleries’ is closed to new replies.