Remove or Customize Title from top of gallery?
afarber
Registered Users Posts: 267 Major grins
Hey all,
I set up my portfolio pages well over a year ago. At the time, I added a Title content block to each one and did not allow the gallery to display its own default title. I did this because I wanted the title text to be smaller and centered and separated from the images by 24px.
Now I see that every gallery has it's default title showing up - so the title now shows twice. Did I miss something simple? How do I get rid of the default title? OR, how do I customize the default title so it shows up the way I want it to?
Bonus points - any way to make this fix in bulk so I don't have to go back through every gallery individually?
See here for an example: http://www.adamfarber.com/Portfolio/Music/Music-Highlights/
Thanks!
Adam
I set up my portfolio pages well over a year ago. At the time, I added a Title content block to each one and did not allow the gallery to display its own default title. I did this because I wanted the title text to be smaller and centered and separated from the images by 24px.
Now I see that every gallery has it's default title showing up - so the title now shows twice. Did I miss something simple? How do I get rid of the default title? OR, how do I customize the default title so it shows up the way I want it to?
Bonus points - any way to make this fix in bulk so I don't have to go back through every gallery individually?
See here for an example: http://www.adamfarber.com/Portfolio/Music/Music-Highlights/
Thanks!
Adam
0
Comments
Add this to your Theme CSS:
.sm-gallery-cover-title {
display: none;
}
It might also work in a CSS content block for the Entire Site or All Galleries, but if each gallery is individually customized, I'm not sure.
Dave
Thanks!!
Have you tried adding !important to the suggested CSS and placing it in your theme?
Is the title the only reason you made the galleries custom? Since you seem to need to edit each of them you might consider reverting the galleries back from custom and applying the title customization in your theme. I would remove it from one gallery, add the code to your theme, and make sure it works as desired before reverting all of the galleries. (I'm a big fan of using as little code as possible to meet your needs in order to provide easy maintenance and change.)
--- Denise
Musings & ramblings at https://denisegoldberg.blogspot.com
/* Hide the Gallery Title & gallery description */
.sm-gallery-cover-title {
display: none !important;
}
Putting it in a CSS content block for All Galleries, it will apply to any gallery that hasn't been made individually customized. If you've individually customized any galleries, the CSS will need to be added to each of those galleries individually.
.sm-page-parentnode-T33q9 .sm-gallery-cover-title {
display: none !important;
}
My Website index | My Blog
Question - how did you locate the parentnode?
I'm still hoping to pull my Portfolio galleries back from being individually customized, but I asked about that in another thread I just posted.
Really appreciate all the help!
Adam
Using one of the web tools. I use Firebug for Firefox.
Images in the Backcountry
My SmugMug Customizations | Adding CSS to Your Site | SEO for the Photographer | Locate Your Page/Widget Number | SmugMug Help Desk
Look at the page source. Do a search/find (cntl+f) for <body ...
(Edit: for Firefox and Chrome you can use Inspect Element from the browser tools or mouse right click menu)
<body class="sm-user-professional sm-user-loggedin sm-page sm-page-node sm-page-node-T33q9 sm-page-parentnode-JTVMM">
In the body tag, the unique class name for this Portfolio folder page is sm-page-node-T33q9.
The body tag will also carry ALL its parents parentnode class names.
Every child of this folder will have a parentnode class name of this folder. .sm-page-parentnode-T33q9
Notice the parentnode has the same ending code as the parent.
BTW, sm-page-parentnode-JTVMM is the parent of this folder, your homepage.
Here's what two layers down look like. Notice how each level has all the parentnodes up to your
homepage. So by using the parentnode in the CSS you can apply to flow down from any level.
My Website index | My Blog