How do I target specific gallery types?
brandofamily
Registered Users Posts: 2,013 Major grins
How do I target specific gallery types? As in I want a div to show only in the smugmug type galleries or the collage landscape galleries, but I do not want to have to add the div to an html box on every gallery.
It was easy in OLD SM, but I cannot get it to work in NEW SM.
It was easy in OLD SM, but I cannot get it to work in NEW SM.
0
Comments
yui_3_8_0_1_1404579403764_770 = your viewers choice gallery
/ɯoɔ˙ƃnɯƃnɯs˙ʇlɟsɐq//:dʇʇɥ
Thanks but I want to target ALL of the collage landscape galleries at once w/ one bit if code.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I am trying to set up a div for a "to the top" button that I can get to show in all collage landscape galleries w/o having to add it to each individual gallery.
I have an html block set up for the site w/ the div. I have it hidden currently, and wish to have it display in the gallery type of my choosing.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
I tried that...
But it would not work.
If that is what you typed in, you have a typo.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Did to try this:
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Fixed the error and tried the other code. Neither worked.
<body id="yui_3_8_0_1_1404596240662_545" style="" class="sm-user-power sm-page sm-page-node
sm-page-node-kdwLC sm-page-gallery sm-page-gallery-album sm-page-hasbackground sm-page-
initialized">
So this is what to use to target a specific page in CSS.
.sm-page-node-kdwLC ...
My Website index | My Blog
some time ago and I can't find it now.
My Website index | My Blog
--- Denise
Musings & ramblings at https://denisegoldberg.blogspot.com
My Website index | My Blog
.sm-gallery-journal
.sm-gallery-smugmug
.sm-gallery-thumbnail
Collage Landscape
.sm-gallery-roworganic
Collage Portrait
.sm-gallery-columnorganic
My Website index | My Blog
I've tried those classes. No help.
So does that code only specify one specific gallery?
.sm-page-node-*****
My Website index | My Blog
How did you find the node? And what gallery one site does that node reference ?
one of the class names in it. I pasted an example couple posts back.
My Website index | My Blog
The problem with this CSS is that it applies to an element with the id "topButton" that is contained by an element with the class "sm-tiles-row-organic". But the "sm-tiles-row-organic" class is applied to just the container for the gallery images, not the page itself. Your HTML content block isn't a child of it, so can't be matched by that rule.
I can't see a single gallery-style-specific class on the page that is at a high enough level in the tree that an HTML content block would be contained by it, so it looks to be impossible to match a gallery style generically.
Please check out my gallery of customisations for the New SmugMug, more to come!
Thanks for trying guys. Looks like I could use Allen's method to at least keep the code in the main site HTML and not have to add it into each gallery.
galleries and pages). Two "entire site" CSS blocks, one for remove and one for add.
I do this because Smug refuses to address the class name flow down.
http://www.dgrin.com/showthread.php?t=239444
A gallery or sub-folder has no idea what it's a child of.
Although they figured out to use "inherit" in security.
My Website index | My Blog
Thanks but I do not think your method will work either... I added this code to my site html block w/o any luck.
for this gallery: http://www.brandolinoimaging.com/Image-Galleries/My-Portfolio/Wildlife-Photos/Wild-Life/
.sm-page-node-WhcCw .sm-page-content #topButton {display:block!important;}
My Website index | My Blog
Did not do it.
What CSS level did you add it?
My Website index | My Blog
Site> Tried in the theme and in site CSS block.
show none everywhere
then
show specific places.
My Website index | My Blog
Yep. I added the "show" code at the end of the CSS in the html/css box set for the entire site.
exactly where/ how are you adding it in that is making it work?
My Website index | My Blog