Options

Hiding gallery description on mobile

RobDaviesImagesRobDaviesImages Registered Users Posts: 3 Big grins
Hi, I have used Denise's script .sm-gallery-cover-description { display: none; } to hide the gallery description on my gallery pages, and it works great on desktop.
However, on mobile, the first few words still show up, with an invitation to "read more" that goes to a blank page. I'm guessing that the initial snippet that shows is controlled by a different element, but I have not been able to tell what it is by looking at the page source on my computer.
Is there an additional script I could use?
Thank you!
Rob

Comments

  • Options
    tomnovytomnovy Registered Users Posts: 1,101 SmugMug Employee

    Hey Rob, please post a link to your SmugMug website so we can take a look at your setup.

    SmugMug Support Hero | Customizer | My SmugMug site - http://www.photom.me | Customization Portal - https://portal.photom.me
  • Options
    RobDaviesImagesRobDaviesImages Registered Users Posts: 3 Big grins
    Hi Tom,
    The website is www.robdaviesimages.com.
    Thanks for taking a look!
  • Options
    tomnovytomnovy Registered Users Posts: 1,101 SmugMug Employee

    Hey Rob, please remove your previous code and replace it with this one:
    .sm-user-ui .sm-gallery-cover-description, .sm-user-ui .sm-gallery-cover-readmore { display: none !important; }

    SmugMug Support Hero | Customizer | My SmugMug site - http://www.photom.me | Customization Portal - https://portal.photom.me
  • Options
    RobDaviesImagesRobDaviesImages Registered Users Posts: 3 Big grins
    Thanks Tom, that worked great -you guys are awesome with custom code!
Sign In or Register to comment.