WordPress.org

Support

Support » Plugins and Hacks » [Plugin: NextGEN Gallery] Adding social media buttons to photos

[Plugin: NextGEN Gallery] Adding social media buttons to photos

Viewing 2 replies - 1 through 2 (of 2 total)
  • you can add anything you want in gallery.php > and include it in the “a” title attrybute(html elements must be encoded) . This is the line you’ll have to change :

    <div class="ngg-gallery-thumbnail">
    
    <strong><a href="<?php echo $image->imageURL ?>" title="blah...some encoded elements..." ></strong>
    
    <?php if ( !$image->hidden ) { ?>
    				<img title="<?php echo $image->alttext ?>" alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailURL ?>" <?php echo $image->size ?> />
    				<?php } ?>
    			</a>

    Thanks for the tips.

    It would be great to share NextGen gallery images with links back to your website.

    I did pay a developer to help me set this up with a custom plugin-in.

    If you would like to test it and share a public comment I would be happy to share the plugin with you. Please contact me at sharemygallery.com.

    You can also hire a programmer to do this for you – though I know doing it yourself can be more fun.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: NextGEN Gallery] Adding social media buttons to photos’ is closed to new replies.