Make Lightbox Caption Wider - Aaron Meyers
Make the Lightbox Caption Wider

Make the Lightbox Caption Wider

By default SmugMug has the lightbox caption set to a fairly narrow width. This causes caption test to wrap to a large number of lines. If you would like to expand the width of the lightbox caption text, use the code below. SmugMug also places the scroll-bar for the lightbox caption very close to the tools icons ... this can be awkward and confusing for your viewers. The code below brings the scroll-bar so it is near the end of your caption text. Feel free to change the 1000px width I set below. I set the scroll bar to be 10 pixels to the right (1,010px). Add the following to your theme's Advanced CSS section:

/* Make the width of the lightbox caption wider */
.sm-user-ui .sm-lightbox-caption {
  max-width: 1000px !important;
}

/* The lightbox caption area is really wide but the text in it is much
   skinner. The scroll bar was very far away. Bring it in to match 
   the width of the lightbox caption */
.sm-user-ui .sm-lightbox-panel {
  max-width: 1010px !important;
}

Comments

Powered by SmugMug Log In