Hiding gallery description on mobile

RobDaviesImagesRobDaviesImages Boston, MassachusettsPosts: 3Registered Users 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

  • tomnovytomnovy SmugMug Support Hero Leicester, United KingdomPosts: 1,076Registered Users 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
  • RobDaviesImagesRobDaviesImages Boston, MassachusettsPosts: 3Registered Users Big grins
    Hi Tom,
    The website is www.robdaviesimages.com.
    Thanks for taking a look!
  • tomnovytomnovy SmugMug Support Hero Leicester, United KingdomPosts: 1,076Registered Users 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
  • RobDaviesImagesRobDaviesImages Boston, MassachusettsPosts: 3Registered Users Big grins
    Thanks Tom, that worked great -you guys are awesome with custom code!
Sign In or Register to comment.