• Hi there,

    I was wondering if there is any way to use the Nextgen Gallery widget to show an image with the text? Its only showing the images. Or is there some other code that will allow me to show a random image with the description text?

    Thanks.
    Hazel

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi
    What can we do? I’m also looking for a function to show text below pictures.
    Plaease help.
    JENS – Denmark

    I figured this out ??

    Add this…

    ?>
    <div id="thumbdesc">
    <?php
    //SHOW IMAGE DESCRIPTION//
    echo $image->description;?><br /></div>
    <?php

    after line 406, should now look like this…

    echo $out . '</a>'."\n";?>
    
                    <div id="thumbdesc">
    				<?php
    				//SHOW IMAGE DESCRIPTION//
    				echo $image->description;?><br /></div>
    
    <?php
    			}
    
    		}
    
    		echo '</div>'."\n";
    		echo $after_widget;
    
    	}
    
    }// end widget class
    }
    
    // let's show it
    $nggWidget = new nggWidget;

    Hope that helps you. You can remove the br and div tags, I just added them for styling purposes. ??

    In which file should you make this adjustment? I am not too knowledgable in PHP.

    OK. Figured it out. Not based on the code above, though. There are instructions from the creator of the plugin on how to do this. Read and implement carefully…

    First read https://nextgen.boelinger.com/templates/, and then https://nextgen.boelinger.com/templates/caption/.

    Mind you: the code [ nggallery id=1 template=caption ] should be Mind you: the code [nggallery id=1 template=caption] – WITHOUT the spaces…

    I emailed Ruben Boelinger about this, and hopefully he’ll fix the instructions.

    But now it works!

    Check out https://www.robinaggus.ca/landscaping/elora-gorge-cinema-courtyard/ for the end result.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Nextgen Gallery widget – show text?’ is closed to new replies.