Options

How to not display gallery description

mrhonimrhoni Registered Users Posts: 173 Major grins
edited July 22, 2014 in SmugMug Customization
I tried this in a CSS for "all galleries", but the gallery description is still displayed. Wrong syntax or wrong location?

.sm-gallery-description
{
display: none;
}

Comments

  • Options
    AllenAllen Registered Users Posts: 10,011 Major grins
    edited July 22, 2014
    Can you post a direct link to an example page? Is this for all these type pages or just this one?
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    mrhonimrhoni Registered Users Posts: 173 Major grins
    edited July 22, 2014
    Here is an example. Gallery description is above the thumbnails and I want to keep it on the gallery settings but not display it

    http://www.mrhoni-photography.com/Portfolio/Dog-Photographer-Dog-Portraits/
  • Options
    AllenAllen Registered Users Posts: 10,011 Major grins
    edited July 22, 2014
    Try this in "all galleries" CSS. 2nd rule displays it for you when logged in if wanted.

    .sm-gallery-description {display:none !important}
    .sm-user-owner .sm-gallery-description {display:block !important}
    Al - Just a volunteer here having fun
    My Website index | My Blog
  • Options
    mrhonimrhoni Registered Users Posts: 173 Major grins
    edited July 22, 2014
    Thank you, that worked. it seems the !important was needed. What does "!important" do? I've seen it in other code snippets.
  • Options
    AllenAllen Registered Users Posts: 10,011 Major grins
    edited July 22, 2014
    mrhoni wrote: »
    Thank you, that worked. it seems the !important was needed. What does "!important" do? I've seen it in other code snippets.
    CSS is read in order of load and the later CSS takes over. Or perhaps an earlier CSS already has !important applied.
    Just guessing :D
    Al - Just a volunteer here having fun
    My Website index | My Blog
Sign In or Register to comment.