[Plugin: NextGEN Gallery] Add gallery title to in-page view?
-
Hi
I have just started using nextgen on my wordpress site – see https://www.flowfree.co.uk/photos-2/
I have opted for galleries to open within the page, rather than in a new page but I would like to have the title of the gallery above whatever view the user is viewing.
I have hacked gallery.php (see https://www.flowfree.co.uk/photos-2/photos-of-ff-courses/?album=2&gallery=3) and imagebrowser.php (see https://www.flowfree.co.uk/photos-2/photos-of-ff-courses/?album=2&gallery=3&pid=50), so they now show the title.
HOWEVER I have the following issues:
- I cannot work out what file to edit to get the gallery title displayed in slideshow view (see https://www.flowfree.co.uk/photos-2/photos-of-ff-courses/?album=2&gallery=3&show=slide)
- Although I am able to get the title to view, I am unable to access the gallery page link (or at least the URL to take me back to default view of that gallery) so the title just links to the current page (and in the html the href is empty)
- Now if I use the [random ] shortcode, the title of the album that the photos were selected from comes up above the photos
- I’d like imagebrowser to link back to the thumbnail view and link to the slideshow view – how can I do this?
I added the following code to imagebrowser:
<?php $gallery = nggdb::find_gallery( get_query_var('gallery') ); ?> <h3><a href="<?php echo $gallery->pagelink ?>"><?php echo $gallery->title ?></a></h3>
And this to gallery.php and gallery-carousel.php :
<h3><a href="<?php echo $gallery->pagelink ?>"><?php echo $gallery->title ?></a></h3>
Please can anyone advise how to get my desired outcomes? I imagine that adding the above code to those files is not the best way to do it!!
All help very gratefully received!
Cheers
Lowri
https://www.ads-software.com/extend/plugins/nextgen-gallery/
- The topic ‘[Plugin: NextGEN Gallery] Add gallery title to in-page view?’ is closed to new replies.