How to Add a "Download" Label and Stylish Border to Your SmugMug Download Button
This tutorial shows you how to add a clear "Download" text label and a stylish rounded border to your download buttons using simple CSS code.
Have you ever wanted to make your SmugMug download buttons that appears over gallery thumbnails more prominent and user-friendly? By default, SmugMug’s download buttons only show a small icon without any text label, which can sometimes confuse visitors who might not immediately recognize what the button does.
In this tutorial, I’ll show you how to add a clear “Download” text label and a stylish rounded border to your download buttons using simple CSS code. This customization will make your download buttons more obvious and visually appealing to your website visitors.
This tutorial uses CSS code, which might look intimidating if you’ve never used it before. Don’t worry! CSS is like giving instructions to your website about how things should look. Think of it as telling your website: “Make this button have a white border” or “Add the word ‘Download’ before the icon.”
You don’t need to understand every single line of code – just follow the steps, and everything will work perfectly.
Copy and paste this code into your CSS content block:
CSS
/* Add "Download" text and rounded border to SmugMug download button */.sm-button-image-download{border:1px solid white !important;/* White rounded border */border-radius:20px!important;/* More rounded corners */padding:8px12px!important;/* Add padding for better spacing */transition: all 0.3s ease !important;/* Smooth transition for all properties */}/* Add "Download" text before the icon */.sm-button-image-download::before{margin-right:4px;/* Adjusting space between the button and the icon */content:"Download";font-size:13px;/* Adjust font size as needed */color: inherit;/* Use the same color as the button */}/* Optional: Adjust the icon size if needed */.sm-button-image-download.sm-fonticon{flex-shrink:0;/* Prevent icon from shrinking */}/* Optional: Hover effect for better user experience */.sm-button-image-download:hover{background-color:rgba(0,0,0,0.1)!important;border-color:#555 !important;transform:translateY(-2px)!important;/* Subtle lift effect */}
.sm-button-image-download{border:1px solid white !important;border-radius:20px!important;padding:8px12px!important;transition: all 0.3s ease !important;}
border: 1px solid white
– Creates a thin white border around the button
border-radius: 20px
– Makes the corners rounded (higher numbers = more rounded)
padding: 8px 12px
– Adds space inside the button so it’s not cramped
transition: all 0.3s ease
– Makes any changes to the button happen smoothly over 0.3 seconds
The button doesn’t look different: Make sure you’ve published your changes and cleared your browser cache (try refreshing the page with Ctrl+F5 on Windows or Cmd+Shift+R on Mac).
The text appears but looks weird: Check that you’ve copied the entire code correctly, including all the brackets and semicolons.
The hover effect doesn’t work: This is usually a copy-paste issue. Double-check that the hover section of the code is included.
This simple customization can make a big difference in user experience. Your visitors will immediately understand what the button does, and the polished styling makes your site look more professional.
Remember, if you want to remove this customization later, simply delete the CSS code from your content block and publish the changes.