Removing categories from the Search page

PhilCorleyPhotoPhilCorleyPhoto Registered Users Posts: 107 Major grins
edited February 7, 2017 in SmugMug Customization

I am trying to remove some of the categories from the search page (e.g., Videos). I have tried the CSS below, but the categories still show...

/*This code will hide the GALLERIES category*/
#sm-search-category-galleries {
    display: none !important;
}
 
/*This code will hide the FOLDERS category*/
#sm-search-category-folders {
    display: none !important;
}
 
/*This code will hide the VIDEOS category*/
#sm-search-category-videos {
    display: none !important;
}

Anyone know what I am doing wrong?

Thanks

Phil

Comments

  • Lille UlvenLille Ulven Registered Users Posts: 567 Major grins

    Try this instead:

    /*This code will hide the GALLERIES category*/
    .sm-search-category-galleries {
        display: none !important;
    }
    
    /*This code will hide the FOLDERS category*/
    .sm-search-category-folders {
        display: none !important;
    }
    
    /*This code will hide the VIDEOS category*/
    .sm-search-category-videos {
        display: none !important;
    }
    

    Not certain, but I believe sm-search-category-videos are classes and not ids, so you have to refer to them with the dot-prefix and not the #-prefix.
    Else: you might be in the wrong CSS block - if I remember correctly these ones belong into the Theme's CSS and not one of the CSS blocks directly in your customization-menu.

    Good luck

    Lille Ulven

    https://www.lilleulven.smugmug.com - The Photos of my travels
  • PhilCorleyPhotoPhilCorleyPhoto Registered Users Posts: 107 Major grins

    Hmm, still not working. I have added this to the Theme's CSS (Customise, Content & Design, Theme, settings, Advanced, CSS) and they still show

    Any other ideas ?

    Thanks

    Phil

  • Lille UlvenLille Ulven Registered Users Posts: 567 Major grins

    I was wrong about it being a class, it actually is an id you are trying to remove...so the # needs to replace the . again.

    And here is a complete description of how to do it: https://portal.photom.me/portal/hide-individual-search-categories-search-page/ by @tomnovy

    Good luck

    Lille Ulven.

    https://www.lilleulven.smugmug.com - The Photos of my travels
  • PhilCorleyPhotoPhilCorleyPhoto Registered Users Posts: 107 Major grins

    Thanks Lille; works :smiley:

    Now - last one. Is it possible to change the label; so I can rename Pages to Blog ? Site must be nearly done now as I am into the fine-tuning tweaks :smiley:

Sign In or Register to comment.