WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ericwolff
    Member
    Posted 2 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

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. un_user
    Member
    Posted 2 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 } ?>
    			</a>
  3. bluejpro
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.