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

Hide BUY button everywhere on your SmugMug site

This CSS code will allow you to hide the BUY button everywhere on your SmugMug website. The button will not appear to your visitors and yourself – logged in account owner.

Add a CSS content block to the ENTIRE SITE section and then add this code to it:

CSS
/*Hiding all buy buttons*/
.sm-user-ui .sm-gallery-cover-buttons .sm-gallery-cover-buy-button {
  display: none;   /*This code hides the buy button, which appears at the top of your gallery*/
}

.sm-gallery-sticky-buy-button-bar {
 display:none; /*This code removes the top bar buy button - needs to be used if the above code is used*/
 }

.sm-user-ui .sm-gallery-image-tools .sm-button-image-buy {
  display: none;   /*This code hides the buy button, which appears over thumbnails in your gallery*/
}

.sm-user-ui .sm-lightbox-tools .sm-lightbox-buy-button {
  display: none;   /*This code hides the buy button, which appears in the lightbox view*/
}

.sm-lightbox-v2-photo-buttons .sm-lightbox-buy-button {
  display: none;  
}

.sm-gallery-sticky-buy-button-bar {
 display:none; /*This code removes the top bar buy button - needs to be used if the above code is used*/
 }
 
/*UPDATE January 2024 - hide the buy icon that appears on top of every thumbnail*/ 
.sm-user-ui .sm-gallery-selection-button {
  display: none;
}
CSS

Related articles

Comments (4)

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.