NextGEN Gallery
Adding social media buttons to photos (3 posts)

  1. ericwolff
    Posted 4 years ago #

    Hi all,

    How can I add social media buttons (facebook, google +, twitter, email, etc) to the nextgen gallery plugin? I'm sure I'm missing something pretty basic. It's been that kind of week.

    Thanks. Eric


  2. un_user
    Posted 4 years ago #

    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 } ?>
  3. Joanne
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.