[Plugin: NextGEN Gallery] v1.0 new template system / thumbnail captions agony
-
I’ve read through this thread as well as Alex’s documentation, and it all feels very confusing.
In pre-1.0 versions of NGG, the default thumbnail gallery style (
nggallery.css
version 1.43) natively supported captions under the thumbnails, like this. But now, in NGG 1.0+, there are no captions, and to get them back requires me to modify a template PHP file (gallery.php
) and get it to call a new class innggallery.css
, and then put both files in my theme’s root directory. Or in a subdirectory callednggallery
, or some combination of the two… I can’t tell for sure.I appreciate all the development that Alex et al. have done on this plugin, I really do. I’m just frustrated that the new version requires all this hackery from me just for my gallery to look the same as it did before. I don’t know PHP. I do know some CSS, which had been enough before.
I’ve spent hours on trial-and-error attempts to get this new template setup to show the captions under my thumbnails again, and I’m still nowhere. The post from Web Designer Wall which is the basis of this template system and its documentation so far is nifty, but I’m not trying to do all that. All I want is my gallery to look the same as it used to, and I don’t understand why it has to be this difficult to make that happen.
My still-captionless gallery page is at https://theatreneo.com/?page_id=22. Assuming there isn’t a simple way to make the captions reappear without making a template
gallery.php
file, I guess these are my first questions:- Does my customized
nggallery.css
file that goes in the root directory of my theme (right?) have to be a complete copy of/wp-content/plugins/nextgen-gallery/css/nggallery.css
with my custom template styling added into it, or is it just a stylesheet, i.e., a file that contains my custom styling and nothing else? - In
gallery.php
, do I need to define the class of my custom template? If so, where? Would it go in line 17, like so:
<div class="ngg-galleryoverview" id="ngg-gallery-<?php echo $gallery->ID ?>" class="mytemplate">
If so, is that all or does it go anywhere else ingallery.php
as well? - Am I supposed to rename
gallery.php
before I put it in my theme directory, likegallery-mytemplate.php
? - Would this be the right way to call the class in my modified CSS file/stylesheet:
.mytemplate .ngg-gallery-thumbnail { height: 115px; /* fix for inline/IE problem from WP Forums thread @ https://www.ads-software.com/support/topic/202931?replies=3 */ } .mytemplate .ngg-gallery-thumbnail img { border:1px solid #336666; /* changed from #A9A9A9 */ } .mytemplate .ngg-gallery-thumbnail img:hover { background-color: #336666; /* changed from #A9A9A9 */ } .mytemplate .ngg-gallery-thumbnail span { /* Images description */ text-align:left; /* ddw added styling */ } /* For people with longish, long, or LOOONG names */ .mytemplate .ngg-gallery-thumbnail span .longish { letter-spacing: -.5px; } .mytemplate .ngg-gallery-thumbnail span .long { letter-spacing: -1.0px; } .mytemplate .ngg-gallery-thumbnail span .looong { letter-spacing: -1.2px; } /* show resume, personal webpage, reel & etc. links in lightbox only, not in thumbnail gallery */ .mytemplate .ngg-gallery-thumbnail span .resumelink, .mytemplate .ngg-gallery-thumbnail span .weblink, .mytemplate .ngg-gallery-thumbnail span .reellink, .mytemplate .ngg-gallery-thumbnail span .photolink { display:none; }
Sorry this post is so long. I really do appreciate any help very much.
- Does my customized
- The topic ‘[Plugin: NextGEN Gallery] v1.0 new template system / thumbnail captions agony’ is closed to new replies.