How to set Advanced button styling for sample button?

You can customize the sample button’s appearance with advanced styling options, including border color, border width, font size, font weight, margin, and padding.

Enable Sample Button Advanced Styles in Basic Configuration, then set the style options and save your changes.

How to set advanced button styles

  1. Go to Dotstore Plugins > Product Sample and open the Manage Sample tab and open Basic Configuration.
  2. Turn on Sample Button Advanced Styles.
  3. Set the available style options, such as border color, border width, font size, font weight, margin, and padding.
  4. Click Save Changes, then check the button on a product page.
Basic Configuration with Sample Button Advanced Styles enabled and style fields visible
Figure - Setting advanced button styles in the admin
Storefront sample button displayed with advanced styles applied
Figure - The sample button with advanced styles on the storefront

Pro Tips

  • Set Sample Button Color first for text and background, then use Sample Button Advanced Styles for border, font, and spacing.
  • Use padding and margin carefully so the button still aligns well next to Add to cart.
  • Check the button on desktop and mobile after you save.

Common Use Cases

Here are some popular ways to use advanced styles:

1. Match the button to your theme

Adjust font size, font weight, and border so the sample button looks consistent with your theme’s Add to cart button.

2. Add space around the button

Use margin and padding so the sample button is easier to tap and does not sit too close to other product-page elements.

FAQs

1. Where do I enable advanced button styles?

Go to Dotstore Plugins > Product Sample and open the Manage Sample tab, open Basic Configuration, and turn on Sample Button Advanced Styles.

2. Which style options can I change?

You can customize border color, border width, 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.