Title: Captions Uncentered
Last modified: June 11, 2019

---

# Captions Uncentered

 *  [epiphany770](https://wordpress.org/support/users/epiphany770/)
 * (@epiphany770)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/captions-uncentered/)
 * My site uses Elementor Pro, Astra Pro and Justified Image Gallery. I’m using 
   PhotoSwipe as the lightbox for JIG and like it, so I downloaded the plugin to
   override the Elementor lightbox.
 * Everything seems to be fine, except PhotoSwipe is making my captions go off center
   to the left.
 * When I turn off the plugin, everything goes back to normal. Any ideas on how 
   to fix this?

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

 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/captions-uncentered/#post-11628282)
 * I’m not sure if I understand you correctly:
 * You have captions below images in a gallery on the page? And when you activate“
   Lightbox with PhotoSwipe” these captions are then off center?
 * At the moment I have no idea how this could happen. To display captions in the
   lightbox PhotoSwipe uses the CSS classes `pswp__caption` and `pswp__caption__center`.
   Maybe these classes are also used in the gallery on the page.
 * Do you have an URL where I can see the problem?
 *  Thread Starter [epiphany770](https://wordpress.org/support/users/epiphany770/)
 * (@epiphany770)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/captions-uncentered/#post-11628919)
 * Yes, that’s right.
 * You can click on any of the images at this link to see what I mean:
    [https://epiphanyglass.com/epiphany/](https://epiphanyglass.com/epiphany/)
 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/captions-uncentered/#post-11629310)
 * Ok, I see – it is not the captions in the page itself but in the lightbox.
 * The lightbox here is **not** Lightbox with PhotoSwipe but still the one from 
   JIG – because my plugin does not use the “zoom animation” you see when opening
   an image (the reason why this is not supported in my plugin is explained in the
   FAQ).
 * The text alignment also comes from JIG, specifcially from [https://epiphanyglass.com/wp-content/plugins/justified-image-grid/css/photoswipe4.css](https://epiphanyglass.com/wp-content/plugins/justified-image-grid/css/photoswipe4.css),
   line 469:
 *     ```
       .pswp__caption__center {
         text-align: left;
         max-width: 420px;
         margin: 0 auto;
         font-size: 13px;
         padding: 10px;
         line-height: 20px;
         color: #CCC; }
       ```
   
 * If you want to use Lightbox with PhotoSwipe you have to disable the lightbox 
   in JIG first, if this is possible. If you can not disable the lightbox there,
   then Lightbox with PhotoSwipe can not be used, sorry!
 *  Thread Starter [epiphany770](https://wordpress.org/support/users/epiphany770/)
 * (@epiphany770)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/captions-uncentered/#post-11646152)
 * Thank you!
    Do you know if it’s possible to use this plugin with Elementor?
 *  Plugin Author [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * (@awelzel)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/captions-uncentered/#post-11646592)
 * I’m sorry, but didn’t test my plugin with Elementor.
 * As a rule of thumb: if Elementor (or any other plugin) uses its own version of
   PhotoSwipe, then this will definetely cause a conflict. You have to check, if
   you can disable the PhotoSwipe versions in the other plugins.

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

The topic ‘Captions Uncentered’ is closed to new replies.

 * ![](https://ps.w.org/lightbox-photoswipe/assets/icon-256x256.png?rev=2906302)
 * [Lightbox with PhotoSwipe](https://wordpress.org/plugins/lightbox-photoswipe/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lightbox-photoswipe/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lightbox-photoswipe/)
 * [Active Topics](https://wordpress.org/support/plugin/lightbox-photoswipe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lightbox-photoswipe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lightbox-photoswipe/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Arno Welzel](https://wordpress.org/support/users/awelzel/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/captions-uncentered/#post-11646592)
 * Status: not resolved