WP gallery caption centering for Dazzling WordPress theme

Hello there,

I am using Dazzling theme and trying to center WP native gallery’s caption. I tried few codes below in custom CSS but it didnt worked out.

.wp-caption {
text-align: center;
}
.wp-caption-text {
text-align: center;
}
.wp-caption .wp-caption-text {
text-align: center;
}

Gallery images and caption both were left aligned. I managed to align images to center using div tabs but caption are still left aligned.

Let me know any if you could help out.

Thanks,
Shrikant

Caption text for WordPress Galleries using Dazzling theme are centered by default. It is either you have made some code modification to your theme or you are using some sort of different gallery which is based on some plugin or script.

I also tested Dazzling galleries to see if everything works just as it should be and here is screenshot from demo website:

Please post your website URL where exactly these galleries appears and will try to help you from there.