Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Border on WP Gallery image enlargements

Home / Forums / Virtue Theme / Border on WP Gallery image enlargements

This topic is: Resolved
[Resolved]
Posted in: Virtue Theme
May 30, 2016 at 3:04 pm

I’m using the WordPress Gallery system to display images, the enlargements appear on the overlay. Click on any thumb here:

We need to add a thin white border to the enlargement, but I can’t figure out how to tweak the CSS to make that happen.
I added the below CSS to the Custom CSS Box in the Advanced area of the Theme Settings, and this IS putting a border on – but it’s around the whole ‘box’, including the caption area below the image and the area above the image. We need the border added to the actual image only.

.mfp-img {
border: 1px solid #fff;
}

I’m using a child theme of Virtue which includes some other small tweaks, as well as commented-out CSS in my attemps to tweak a border.
Is there a way to do this?
Any help appreciated, thanks,
Annette

  • The forum ‘Virtue Theme’ is closed to new topics and replies.