• Resolved rodeboy

    (@rodeboy)


    On my site http://www.groovapolitan.co.uk/gallery/ I have the following code in CSS which removes the background on the thumbnails and places a decorative grey line around two sides.

    .ngg-gallery-thumbnail img{-webkit-box-shadow: #787878 1px 1px 1px;-moz-box-shadow: #787878 1px 1px 1px; box-shadow: #787878 1px 1px 1px;border:1px;}
    
    .ngg-gallery-thumbnail img {
        background-color:transparent!important;
        border:none!important;
    }
    .ngg-gallery-thumbnail img:hover {
    background-color:#ebeaea!important;
    }

    Have just updated to v4.1.50 and the white background has returned, as you can see. Can someone please explain why, and the updated coding required? I have not updated this, different, site where you can see how, with the same coding, the thumbnails used to be! http://www.aboutthemshoes.co.uk/images/the-brickmakers-24th-july-2014/

    Thank you very much for your time. Chris

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same thing just happened to me. Just updated to 2.1.50 and now all my galleries look awful.

    I have had the following css for years which is no longer working:

    .ngg-gallery-thumbnail img {
    background-color: #000000 !important;
    border: 1px solid #a9a9a9 !important;
    }

    Instead background is white and there is no border.

    Can anyone help?

    Plugin Contributor photocrati

    (@photocrati)

    @rodeboy – Where are you applying the custom CSS you were using? If it was under Gallery > Other Options > Style, is it still there? Have you tried using that option to apply the custom CSS you want to use?

    Thanks!

    – Cais.

    Thanks Cais. In the meantime I wrote to photocrati and got a response that is mostly fixing the problem. Was about to post it when you replied (was it from you?) I didn’t rmember there was that Gallery >Other Options> Style place, so now I’ve got the thumbnails centered and on a black background again (with:
    .ngg-gallery-thumbnail {background-color: #000000;}
    .ngg-gallery-thumbnail img {margin-left: auto; margin-right: auto;}

    but still have ‘new’ white borders around the cells which I’ve written back about – can’t tell what elements those are since ‘browser inspect’ doesn’t work despite my disabling the ‘no right click’ setting.

    Anyway, the above code should be good for rodeboy above as well.

    Thread Starter rodeboy

    (@rodeboy)

    Thanks to both of you. The CSS has always been, and continues to be in my themes Custom CSS options. I tried moving it to the Gallery CSS but with no luck. Like jlevant there is what appears to be new white borders around the thumbnails and, I too cannot tell what elements are involved.

    If we could be told what the new element is I think we could get rid easily. Further advice would be appreciated.

    Thanks again

    Plugin Contributor photocrati

    (@photocrati)

    @rodeboy – The background color is not part of the image element, try removing the img tag from the CSS element(s).

    – Cais.

    • This reply was modified 7 years, 7 months ago by photocrati.
    Thread Starter rodeboy

    (@rodeboy)

    Got it! Many thanks again

    Plugin Contributor photocrati

    (@photocrati)

    @rodeboy – Great news! Thanks for the follow-up!

    – Cais.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Thumbnail background back to white since update’ is closed to new replies.