This blog formerly existed at waterfallweb.net - but it seemed a bit pointless to keep using that name when everywhere else online I'm "rockyshark".
So here's to the big migration!
You may be noticing the general ugliness of this theme. Believe it or not, it's that way on purpose.
Showing posts with label wordpress. Show all posts
Showing posts with label wordpress. Show all posts
Friday, December 24, 2010
Wednesday, March 4, 2009
Displaying a gallery description using NextGen Gallery for Wordpress
Been battling with the excellent NextGen gallery plugin for Wordpress this afternoon.
I had created an Album, which is a container for mutiple Galleries. Simple enough. But then, once you had selected a Gallery, I wanted to display the Gallery description on the Gallery page above the thumbnails.
In the Manage gallery section you can type a description, but it didn't seem there was any way to display that on the actual website.
So if you need to, open the file gallery.php which is inside the plugins directory,
Next, above the line
add this:
This will give you an H2 with the Gallery Title, and then the description below it.
I had created an Album, which is a container for mutiple Galleries. Simple enough. But then, once you had selected a Gallery, I wanted to display the Gallery description on the Gallery page above the thumbnails.
In the Manage gallery section you can type a description, but it didn't seem there was any way to display that on the actual website.
So if you need to, open the file gallery.php which is inside the plugins directory,
nextgen-gallery/view/gallery.phpNext, above the line
<div class="ngg-galleryoverview" id="ngg-gallery-<?php echo $gallery->ID ?>">add this:
<h2><?php echo $gallery->title; ?></h2>
<p class="gallery-desc"><?php echo nl2br($gallery->description); ?></p>This will give you an H2 with the Gallery Title, and then the description below it.
Subscribe to:
Posts (Atom)