Title: Widget Gallery Border
Last modified: August 22, 2016

---

# Widget Gallery Border

 *  Resolved [thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/)
 * (@thetravelbackpack)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/)
 * Hi
 * I have the NextGen gallery widget in the sidebar at [http://www.thetravelbackpack.co.uk](http://www.thetravelbackpack.co.uk)
 * How do I remove the border from each image?
    How do I change the colour for the
   border?
 * Thank you
 * Jonathan
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275782)
 * [@thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/) –
   You can add some custom CSS to modify that border. The CSS element you need to
   address is:
 * `.ngg-widget img { ... }`
 * As to removing the border or changing the color, it would be the same property
   you would need to override (currently): `border: 2px solid #A9A9A9;`
 * Thanks!
 * – Cais.
 *  Thread Starter [thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/)
 * (@thetravelbackpack)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275822)
 * Thanks Cais.
 * I have entered the above into the custom CSS on my site but it did not do anything.
   What is the exact line I should enter to remove the border from each image?
 * Additionally, I added a couple of blogs posts this evening and on the category
   pages that I added to, I’ve got an error above the NextGen widget – see [http://thetravelbackpack.co.uk/category/flights/](http://thetravelbackpack.co.uk/category/flights/)
   
   It’s on the right side above the ‘Inspiration Station’ title.
 * Thank you for your help.
 * Jonathan
 *  [tizz](https://wordpress.org/support/users/tizz/)
 * (@tizz)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275825)
 * `.ngg-widget img {border: none;}`
 * [@thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/),
   for the other issue you should open a new topic (as per the WordPress support
   forum rules).
    Anyway that warning seems like a plugin conflict, so you should
   try to test with all other plugins deactivated (and cache cleared) to find the
   culprit reactivating them one by one. When you have the test outcome, it’s better
   if you open a new topic about that (as this is already marked as resolved and
   it has another title).
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275860)
 * Thanks, [@tizz](https://wordpress.org/support/users/tizz/).
 * [@thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/) –
   I would agree, it would probably be much easier to start a new topic as this 
   is a different issue than our OP.
 * – Cais.
 *  Thread Starter [thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/)
 * (@thetravelbackpack)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275877)
 * Hi
 * Thank you both.
 * I have placed .ngg-widget img {border: none;} in my custom CSS stylesheet provided
   by the theme and the custom CSS page within the NextGen widgets ‘styles’ page
   under ‘other options. However neither remove the border from the widget in the
   sidebar under ‘Inspiration Station’ at [http://www.thetravelbackpack.com](http://www.thetravelbackpack.com)
 * Have I got the right widget in place?
 * Thank you
 * Jonathan
 *  Thread Starter [thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/)
 * (@thetravelbackpack)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275879)
 * Thank you for the suggestion with the error message. It was the plugin ‘Category
   Sticky Post’ that was causing the conflict.
 * Jonathan
 *  [tizz](https://wordpress.org/support/users/tizz/)
 * (@tizz)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275882)
 * [@thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/),
   I forgot to say that there might be need to add the !important propriety
    `.ngg-
   widget img {border: none !important;}` Place this line only in one stylesheet.
   For reasons of “clarity” it would be better place it in NextGEN custom CSS, but
   if you don’t have any other custom CSS there it’s better if you put it where 
   you have some other custom CSS, e.g. theme custom CSS. If you don’t see the change
   immediately, don’t forget to clear the cache.
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275883)
 * [@thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/) –
   You may need to add the `!important` directive to the property, something like
   this:
 * `.ngg-widget img { border: none !important; }`
 * See if that sorts it out.
 * Thanks!
 * – Cais.
 * PS: Thanks [@tizz](https://wordpress.org/support/users/tizz/), you’re quick (*
   grin*)
 *  Thread Starter [thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/)
 * (@thetravelbackpack)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275884)
 * Super, thank you both 🙂
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275892)
 * [@thetravelbackpack](https://wordpress.org/support/users/thetravelbackpack/) –
   Looks good!
 * – Cais.

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

The topic ‘Widget Gallery Border’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [border](https://wordpress.org/support/topic-tag/border/)

 * 10 replies
 * 3 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/widget-gallery-border/#post-5275892)
 * Status: resolved