Found what you have been looking for?

Generic filters
Exact matches only
Filter by Categories
Lightroom Plugin
Tools and Tips

Hiding the BUY button on keyword search result pages

When you search for a keyword on SmugMug the search results will bring all images from all public galleries on your website. The search results will always show the BUY PHOTOS button, even though your gallery has this button turned ON. Don’t worry – if you have disabled the buy button in gallery settings section – your visitors will not be able to buy those photos – even though the buy button still shows.

You can hide the buy button by adding a CSS content block to the ENTIRE SITE section of your website and by adding this code to it:

/* Hiding buy button only on keyword results page */
.sm-page-gallery-keyword .sm-gallery-cover-buy-button {
    display: none !important;

buy button, keywords, keywords results

Tomasz Nowicki

My name is Tomasz Nowicki and I am a PHOTOGRAPHER and WEB DESIGNER based in the UK. Few years ago I have created my first website using SmugMug - a powerful platform for any type of photographer. I fell in love with it and from day one I have started exploring the possibilities of customizing my website. PHOTOM Portal is a my personal SmugMug knowledge base website where you can find some tips and tricks on how to use and get the most out of your SmugMug website.

Comments (2)

  • Hi
    Is there a way to make the search results display in correct proportion thumbnails i.e. 3×2 or whatever instead of squares, and ideally with the image title underneath and in filename order. Its easy to do this on Photodeck and Photium but I just cant get anywhere with Smugmug on this requirement which is a bit of a deal breaker for my particular needs in hosting a historic archive of images.
    Any help greatly appreciated

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.