Jun 3 2026 | By: PhotoBiz Knowledge Base
Overview
This guide explains how to add a custom Pinterest Save button to images inside your PhotoBiz blog posts. Instead of using the default Pinterest Pin button, this setup lets you use your own custom button image.
This is helpful if you want the Pinterest button to match your website branding, colors, or style. Once completed, the custom Pinterest button will appear when visitors hover over supported blog images, allowing them to save your blog images to Pinterest.
This setup uses a small amount of custom CSS and JavaScript added to your global design settings.
Before you begin, make sure the following requirements are met:
Before adding the code, upload your custom Pinterest button image to your PhotoBiz account.
For best results, your custom Pinterest button graphic should be 173 x 100 pixels. This size matches the default button dimensions used in the code and helps the button display clearly over your blog images.
Your custom Pinterest button image should be uploaded to the Files section under Documents. After the image is uploaded, copy the file URL. You will replace the placeholder URL in the code with your copied file URL.
--pb-pin-button-image: url("https://CUSTOM-PINTEREST-FILE");
Replace https://CUSTOM-PINTEREST-FILE with the URL for your uploaded custom Pinterest button image.
For example:
--pb-pin-button-image: url("https://yoursite.com/files/custom-pinterest-button.png");
Learn More: How To Get A Direct File URL in PhotoBiz
Log into your PhotoBiz account and click WEBSITE in the left-side menu.
This opens your Website Builder, where you can edit your website pages, blog display, design settings, and global website code.
At the top center of your Website control panel, click DESIGN.
This opens the design area for your website. From here, you can manage global design settings that affect the look and behavior of your website.
Click EDIT DESIGN SETTINGS to access your global design settings.
These settings apply to your website design as a whole. This is where you can add custom CSS and JavaScript that affects your website.
Click the CSS/JS icon in the right-side menu.
This opens the custom code area for your website. You will use the HEAD section for the CSS code and the BODY section for the JavaScript code.
Copy the code below and paste it into the HEAD section.
Before saving, replace https://CUSTOM-PINTEREST-FILE with the URL for your uploaded custom Pinterest button image.
Copy the code below and paste it into the BODY section.
This code creates the custom Pinterest button and connects it to each supported blog image. When a visitor clicks the custom button, Pinterest opens in a new window so the image can be saved to their Pinterest account.
Click Save Changes to apply the code to your website.
Once saved, open one of your published blog posts that uses the Stack or Stack Mini image layout. When you hover over a supported blog image, your custom Pinterest Save button should appear over the image. On touch devices, the button will display without requiring hover.
After the code is added, visitors viewing your blog posts will see your custom Pinterest Save button appear on supported blog images.
When they click the button, Pinterest will open in a new window. The blog post URL, image, and image description will be sent to Pinterest so the visitor can save the image to one of their Pinterest boards.
Visitors will need to log into their own Pinterest account to complete the save.
The custom Pinterest Save button only appears on blog post images using the Stack or Stack Mini image layouts.
The button does not appear on standard website pages, Client Galleries, image blocks, or other areas of your website.
No Pinterest account connection is required inside your PhotoBiz account. Visitors use their own Pinterest account when saving images.
For best results, use a PNG image with a transparent background for your custom Pinterest button. This helps the button display cleanly over your blog images.
The Pinterest description is pulled from the image alt text when available. If no alt text is available, the code uses the blog post page title.
Why is my custom Pinterest button not showing?
Confirm that your blog post is published and that the images are using the Stack or Stack Mini image layout. The custom button only appears on supported blog image layouts.
Also confirm that the HEAD code and BODY code were pasted into the correct CSS/JS sections.
Why is my button image broken or not loading?
Check the custom button image URL in the HEAD code. Make sure you replaced https://CUSTOM-PINTEREST-FILE with the full URL for the image file you uploaded to your PhotoBiz account.
The URL must remain inside the quotation marks.
Can I use a different button image later?
Yes. Upload the new button image to your Files section under Documents, copy the new file URL, and replace the existing image URL in the HEAD code.
Click Save Changes when you are finished.