We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26982
    • 75 Posts
    I am trying to alter the colour of the "description" text to black when using lightboxv2.
    I tried adding the following CSS to default.css :

    .picturecontainer {
            color: #000000;
    }


    When that didn’t work I tried altering picturetpl.html directly, by adding the following (test) <font> tag:

           [+maxigallery.picture.descr:isnot=``:then=`
                    <p class="description"><font color="black">[+maxigallery.picture.descr:htmlent+]</font></p>
            `+]


    This also has no effect, so I wondered if I’m even altering the right template? Adding a large <h1> test at the top of that template reveals I’m not, so I’m a bit confused now smiley.
    Which file do I need to alter to change the style of the enlarged popup image view in lightboxv2?

    Many thanks,

    /\dam

      • 7923
      • 4,213 Posts
      in /assets/snippets/maxigallery/lightboxv2/css/lightbox.css :

      #imageData #caption{ }


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 26982
        • 75 Posts
        Doh! I was looking in completely the wrong area! embarrassed

        Many thanks for your help, that worked perfectly.

        I don’t suppose there is any documentation for the CSS layout of lightbox is there? Ideally I’d like to specify a min-width value to the popup, so that narrow images don’t have their descriptive text compressed into a very small width.

        /\dam
          • 7923
          • 4,213 Posts
          Google for "lightbox min-width"


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."