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:
/* Hiding buy button only on keyword results page */
.sm-page-gallery-keyword .sm-gallery-cover-buy-button {
display: none !important;
}
CSSComments (6)
Leave a Reply Cancel reply
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.
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
Currently there is no way to do this.
Where do you add the CSS to do the Hide Buy Button thing?
Log in to your SmugMug account → click CUSTOMIZE → on the right side select ENTIRE SITE → add a CSS content block anywhere on the page and paste the CSS code to it.
HI, actually my question is how to hide the buy button on all my gallery pages…
You don’t need any code for this.
If you do not wish to allow your visitors to order photos from your site – you will need to turn the BUY button off. You can do this by opening a gallery – > click SETTINGS – > SHOPPING – turn VISITOR SHOPPING CART OFF {see my screenshot}:
https://cloud.photom.me/fKxMw48
Now just save the settings and that is it – the buy button will disappear from this particular gallery for your visitors.
Please be aware that the BUY button will still be visible to you – logged in account owner { just in case if you decide to buy some prints }.
You can also apply these settings in bulk – using this tutorial:
https://www.smugmughelp.com/en/articles/356-change-settings-for-multiple-galleries-at-once
I hope this helps!