How to Move the Add to Cart Icon Below Thumbnails
Reposition SmugMug's add to cart icon from the corner overlay to below the photo thumbnails for better visibility.
By default, SmugMug places the add to cart icon in the corner of photo thumbnails. Moving it below the thumbnails can make it more visible and easier to click, especially on touch devices.
![]()
CSS code
/* Move add to cart icon below the thumbnail */
.sm-tile-content {
overflow: visible;
}
.sm-button.sm-gallery-selection-button {
top: auto;
bottom: -50px;
}How it works
overflow: visible— Allows the button to appear outside the thumbnail's boundarytop: auto— Removes the default top positioningbottom: -50px— Places the button 50 pixels below the thumbnail
Before you start
If you're using a gallery style with minimal spacing between photos, you'll need to add padding around your thumbnails to make room for the button.
To adjust thumbnail spacing:
- Click Customize on your gallery
- Select the gallery content block
- Increase the Gutter or Padding values
A gutter of at least 60 pixels works well to accommodate the repositioned button without overlapping adjacent thumbnails.
Customization options
Adjust the button position
Change the bottom value to fine-tune placement:
bottom: -40px; /* Closer to thumbnail */
bottom: -60px; /* Further from thumbnail */Center the button
Add horizontal centering for a balanced look:
.sm-button.sm-gallery-selection-button {
top: auto;
bottom: -50px;
left: 50%;
transform: translateX(-50%);
}Style the button
Make the button more prominent:
.sm-button.sm-gallery-selection-button {
top: auto;
bottom: -50px;
background-color: rgba(0, 0, 0, 0.7);
border-radius: 20px;
padding: 8px 16px;
}Where to add the code
Add a CSS content block to the Entire Site section or All Galleries section depending on where you want the change to apply.
How to Style the Mobile Menu on SmugMug
Customize the mobile menu button appearance including making the background transparent and repositioning the footer on mobile devices.
How to Sell Services on SmugMug Using PayPal
Create a pricing widget to sell photography services, packages, or non-print products on your SmugMug website using PayPal Buy Now buttons.