Options

Gallery Description formatting

carolinecaroline Registered Users Posts: 1,302 Major grins
edited September 29, 2013 in SmugMug Customization
I have a long gallery description for this gallery
http://www.carolineshipsey.co.uk/Our-Dogs/Bessies-Diary

In legacy Smugmug it was formatted into paragraphs, how do I do this in new Smugmug?
Is there a way to increase the size of the box where the text is entered?

Caroline
Mendip Blog - Blog from The Fog, life on the Mendips
www.carolineshipsey.co.uk - Follow me on G+

[/URL]

Comments

  • Options
    thenickdudethenickdude Registered Users Posts: 1,302 Major grins
    edited September 27, 2013
    In the new SmugMug, if your gallery description contains any HTML (like your links and bold tags), it causes SmugMug to no longer provide line breaks for you where you've pressed "enter" in the gallery description.

    One way to solve that is to manually enter the HTML for a linebreak <br> where you want linebreaks to happen, so for a paragraph break you would enter that twice in a row.

    The other way is to add this CSS to your theme's CSS, which will restore the old SmugMug linebreaking behaviour without requiring you to edit your gallery descriptions:
    .sm-gallery-description {
        white-space: pre-wrap;
    }
    .sm-gallery-description br {
        display:none;
    }
    

    However, the side-effect of that CSS will be that if you've manually added any <br> tags to your gallery descriptions, they'll no longer be honoured.
  • Options
    carolinecaroline Registered Users Posts: 1,302 Major grins
    edited September 29, 2013
    Lamah wrote: »
    In the new SmugMug, if your gallery description contains any HTML (like your links and bold tags), it causes SmugMug to no longer provide line breaks for you where you've pressed "enter" in the gallery description.

    One way to solve that is to manually enter the HTML for a linebreak <br> where you want linebreaks to happen, so for a paragraph break you would enter that twice in a row.

    The other way is to add this CSS to your theme's CSS, which will restore the old SmugMug linebreaking behaviour without requiring you to edit your gallery descriptions:
    .sm-gallery-description {
        white-space: pre-wrap;
    }
    .sm-gallery-description br {
        display:none;
    }
    
    However, the side-effect of that CSS will be that if you've manually added any <br> tags to your gallery descriptions, they'll no longer be honoured.

    Thanks very much, have yet to implement this but will report back <img src="https://us.v-cdn.net/6029383/emoji/thumb.gif&quot; border="0" alt="" >
    Mendip Blog - Blog from The Fog, life on the Mendips
    www.carolineshipsey.co.uk - Follow me on G+

    [/URL]
  • Options
    carolinecaroline Registered Users Posts: 1,302 Major grins
    edited September 29, 2013
    Worked perfectly - Thank youclap.gif
    Mendip Blog - Blog from The Fog, life on the Mendips
    www.carolineshipsey.co.uk - Follow me on G+

    [/URL]
Sign In or Register to comment.