Remove unlisted box from gallery thumbs?
spider-t
Registered Users Posts: 443 Major grins
Is there a way to remove the box that says "unlisted" and sits on top of all the gallery thumbnails in my Events? (see screenshot).
I would like to hike that unlisted box on my entire site when I'm not logged in. Any CSS to do that?
thanks!!!!
Trish
I would like to hike that unlisted box on my entire site when I'm not logged in. Any CSS to do that?
thanks!!!!
Trish
0
Comments
--- Denise
Musings & ramblings at https://denisegoldberg.blogspot.com
This screenshot was taken in a browser where I am not logged in. So that's what my Events look like. I give my customers links to their events.
Trish
/*remove unlisted bock*/
.sm-tile-content .sm-badge-text {
display: none;
}
Which is not quite the fix I was hoping for. I was hoping for code that would hide the unlisted box only when I was logged out.
You won't see the unlisted galleries by browsing my site, only by visiting an unlisted event link. Here's one: http://www.trishtunney.com/event/Endeavor-Summit/qEpMf5ekrFgdw
If you want to see unlisted galleries with the box over them, go to that link and remove that code from the footer using some fancy dev tool. If that's possible. :-)
thanks!
Trish
It is possible, and that's what I did. :ivar And sure enough, when I removed your code, I DID see unlisted, even though I was logged out (I have no password at all of course). I'm not sure if it is supposed to be that way or not.
Anyway, the solution I recommend is to leave the CSS in there that you already put in there, then put this code just under it:
That code basically undoes your code only when you are logged in.
And by the way, the "fancy dev tool" is the web developer tools built into Firefox. Specifically, the Style Editor is what you need there (and the Inspector is the other helpful tool for me). From there, you can see all the stylesheets that are active on any page. Most of the styles are SmugMugs rules. You can also change any of them on the fly for testing purposes. That's how I do all my stuff. I'll put in a hundred lines or more sometimes before I actually paste it into the customizer. (My menu currently has 333 lines, but some of that is space between rules and comments.) You can also click new to add your own fresh stylesheet with just your changes. You can then save it and reload it later to pick up your work where you left off, all without actually making a single real change to your site. Then when it's the way you want it, copy and paste it into the real thing.
Looks like they're using the SmugMug Events feature, which does allow you to share Unlisted galleries to clients.
Please check out my gallery of customisations for the New SmugMug, more to come!
The only thing left is that I'd like to do is hide the Event title on the Event page. I apparently can't hide or un-emphasize the breadcrumbs on the Event page and the breadcrumbs and event title say the exact same thing. Really loudly. Got any magic CSS to hid the Event title on the event page?
thanks!
Trish
Which part would you like? The first or second one?
That takes out just the title. However, I recommend modification of the layout of what remains. Here are two options that you might like, which you would use along with the above code.
Option 1: Option 2:
Here's the problem. Your fancy code now has made the top of my event's look so awesome, it makes me wish that heading just below it that says "Event Galleries" in that really big font would go away too.
Have another one in you?
Event link: http://www.trishtunney.com/event/End.../qEpMf5ekrFgdw
thanks!
Trish
If SmugMug could add a class to the body tag identifying it as an event, this would be much tidier and less prone to breaking as SmugMug changes.
Please check out my gallery of customisations for the New SmugMug, more to come!
Well spotted!
That's not so horrible. Wait till you hear how truly horrible the only idea I came up with is: I was going to press that #eventName that we got rid of earlier back into service. I was going to hide it's text, give it a background color equal to the background color of the page, then relatively position it on top of the undesired heading. And we wouldn't stop there! No, because surely it wouldn't look right on mobile devices, so we'd need special rules for them. Oh, and as soon as Trish decided to change the theme of her site in the future with a different color, there would suddenly have an unexplained black box hanging around for no apparent reason.
How's that for a horrible hack? I like yours better. If they do add a .sm-page class to event pages for no reason, perhaps they will also give us an .sm-event-page or some such class. If suddenly the heading pops up again, we can revisit it at that time. Now, it's too bad CSS comments get stripped out, because we might forget what we did.
Hahaha, yup that is definitely more horrible.
Yeah I'm sure they would at the same time. I'm really surprised that there isn't one there already to be honest.
That is really annoying, and crazy. I *think* it happens because SmugMug takes your CSS, minifies it, and stores only that version for the widget. Then when you want to edit the CSS, it takes the minified version and reformats it back to readability. That's a really stupid way of doing things.
Thankfully, the global Theme CSS does preserve comments.
Please check out my gallery of customisations for the New SmugMug, more to come!