Skip to main content

Are you still looking for something?

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

Try these: contact formbuttonbuy photos

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 OFF 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:

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

Related articles

Comments (6)

Leave a Reply to Tomasz Nowicki Cancel 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 me

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.