Title: Share button
Last modified: August 24, 2016

---

# Share button

 *  Resolved [Sebwite](https://wordpress.org/support/users/sebwite/)
 * (@sebwite)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/share-button-9/)
 * First of all thanks for the great plugin.
 * Unfortunate we’re missing the share button at the right top corner. Could you
   please add it to your plugin? It is easy to add by adding the following code 
   to photo-swipe.php
 * Add this in <div class=”pswp__top-bar”> after <button class=”pswp__button pswp__button–
   close” title=”Close (Esc)”></button>
 *     ```
       <button class="pswp__button pswp__button--share" title="Share"></button>
       ```
   
 * Add this in <div class=”pswp__ui pswp__ui–hidden”> after <div class=”pswp__top-
   bar”>
 *     ```
       <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
       <div class="pswp__share-tooltip"></div>
       </div>
       ```
   
 * It would look like:
 *     ```
       <div class="pswp__ui pswp__ui--hidden">
                   <div class="pswp__top-bar">
                       <div class="pswp__counter"></div>
                       <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
                       <button class="pswp__button pswp__button--share" title="Share"></button>
                       <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
                       <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
                       <div class="pswp__preloader">
                           <div class="pswp__preloader__icn">
                             <div class="pswp__preloader__cut">
                               <div class="pswp__preloader__donut"></div>
                             </div>
                           </div>
                       </div>
                   </div>
   
                   <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                       <div class="pswp__share-tooltip"></div>
                   </div>
   
                   <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
                   </button>
                   <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
                   </button>
                   <div class="pswp__caption">
                       <div class="pswp__caption__center"></div>
                   </div>
               </div>
       ```
   
 * We hope you can fix this so we keep updating the plugin in the future.
 * [https://wordpress.org/plugins/photo-swipe/](https://wordpress.org/plugins/photo-swipe/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Louy Alakkad](https://wordpress.org/support/users/louyx/)
 * (@louyx)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/share-button-9/#post-6149316)
 * Hi Sebwite,
 * I am aware of this feature as I removed it manually. The reason is that this 
   will require images to be sharable, and to be sharable they should have IDs, 
   which might not always be the case.
 * I’ll add an option to allow this. But it might take some time to ensure IDs work
   correctly. It’s not just a matter of adding the share button because the link
   will not work then. I also don’t want to make the plugin complicated as there
   will be an official version soon which allows you to control everything the original
   library offers.
 * Regards,
 *  [Jenn Schlick](https://wordpress.org/support/users/jschlick/)
 * (@jschlick)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/share-button-9/#post-6149381)
 * Hi Louy,
 * Your last comment mentioned an official version. Is this an official version 
   of your plugin? Or an official WordPress plugin for the original PhotoSwipe library?
 * I’m evaluating whether to use this plugin on a production site and this would
   be very helpful to know. Thanks very much!
 * Jenn
 *  Plugin Author [Louy Alakkad](https://wordpress.org/support/users/louyx/)
 * (@louyx)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/share-button-9/#post-6149382)
 * Hi Jenn,
 * There was supposed to be [an official version](https://github.com/dimsemenov/PhotoSwipe/issues/825#issuecomment-96677507)
   but I think it isn’t ready yet. I have no more details about it.
 * Cheers,
 *  [Jenn Schlick](https://wordpress.org/support/users/jschlick/)
 * (@jschlick)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/share-button-9/#post-6149383)
 * Interesting. Thanks for the response, Louy!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Share button’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/photo-swipe.svg)
 * [PhotoSwipe](https://wordpress.org/plugins/photo-swipe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/photo-swipe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/photo-swipe/)
 * [Active Topics](https://wordpress.org/support/plugin/photo-swipe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photo-swipe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photo-swipe/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Jenn Schlick](https://wordpress.org/support/users/jschlick/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/share-button-9/#post-6149383)
 * Status: resolved