Found what you have been looking for?

Search
Generic filters
Exact matches only
Filter by Categories
Customization
Domains
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;
}

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.

Support this PORTAL

I am writing this portal in my free time and I pay for it myself. So, if you want to support my work – use this button to buy me a coffee 🙂 Which will help towards the hosting costs of the portal.