Is this some weird glitch?

ReignReign Registered Users Posts: 69 Big grins
edited November 21, 2013 in SmugMug Customization
I added this to my CSS to hide the home button. It hides the home button and then some of my galleries go missing, too. I took it out for that reason.
/* Hide the home icon, and the first the separator icon in the breadcrumb*/
.sm-page-layout-region-center .sm-page-widget-body li:first-child,
.sm-page-layout-region-center .sm-page-widget-body li:nth-of-type(2) {
  display: none !important;
}
www.nathantpham.com (your comments and suggestions are welcomed)

Comments

  • JtringJtring Registered Users Posts: 675 Major grins
    edited November 21, 2013
    The class .sm-page-widget-body gets applied to a great many different kinds of content blocks, including breadcrumbs and the widget that holds lists of galleries. To avoid a too-wide-ranging effect, you need to narrow the scope. To turn off just the house and the first > in the breadcrumb, I think
    .sm-page-widget-breadcrumb li:first-child,
    .sm-page-widget-breadcrumb li:nth-of-type(2) {
        display: none;
    }
    
    will do the job. It did so on a trial I did on one of my folders. If not you may need to explore a bit with one of the code inspectors to find the class of the div that contains the list you want to target.

    Jim Ringland
    jtringl.smugmug.com
    Jim Ringland . . . . . jtringl.smugmug.com
Sign In or Register to comment.