How to Change the Color of the Sample Button?

You can change the text color and background color of the sample button from Basic Configuration.

This helps the Order a Sample button match your store’s branding or stand out next to Add to cart.

How to change the sample button color

  1. Go to Dotstore Plugins > Product Sample and open the Manage Sample tab and open Basic Configuration.
  2. Use Sample Button Color to set the text Color and the Background color.
  3. Click Save Changes.
  4. Open a product page on the storefront to confirm the button colors.
Basic Configuration Sample Button Color settings for text color and background color
Figure - Sample Button Color settings in Basic Configuration
Storefront product page showing a sample button with a custom color
Figure - A sample button with a custom color

Pro Tips

  • Choose a background color that contrasts with the button text so the label stays readable.
  • If you need more than color, enable Sample Button Advanced Styles in Basic Configuration to adjust border, font, margin, and padding.
  • Check the button on both the product page and, if it is visible, the shop page.

Common Use Cases

Here are some popular ways to use button colors:

1. Match your store’s brand colors

Set Sample Button Color to your brand text and background colors so the button fits the rest of the page.

2. Make the sample button stand out

Use a contrasting background color so shoppers can quickly find Order a Sample next to Add to cart.

FAQs

1. Where do I change the sample button color?

Go to Dotstore Plugins > Product Sample and open the Manage Sample tab, open Basic Configuration, and use Sample Button Color to set the text Color and Background.

2. Can I also change the button size or border?

Yes. Enable Sample Button Advanced Styles in Basic Configuration to set border, font size, font weight, margin, and padding.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.