Skip to main content

Hyvä theme settings

What it does​

Make the price request form look like the rest of your Hyvä store. On a Hyvä store, the form takes its look from ten CSS class settings, one for each kind of form element, so no template changes are needed. You set them in Stores → Configuration → MageMe Extensions → HidePrice, under Developer → Hyvä Theme.

Before you start​

  • The Hyvä companion module of HidePrice Pro is installed. The Hyvä Theme group appears only with it. See Installation.
  • You know the classes you want, or a developer gives them to you. The fields take Tailwind CSS utility classes, the same kind your Hyvä theme uses, separated by spaces.

Steps​

  1. Go to Stores → Configuration → MageMe Extensions → HidePrice. Expand Developer, then Hyvä Theme.

  2. If the classes are for one store view, select it in the scope switcher at the top of the page.

  3. For each field you want to change, clear the checkbox next to it, then enter your classes. The checkbox is Use system value in the default scope, Use Default on a website and Use Website on a store view. The fields are described in CSS classes for the form.

    Hyvä Theme settings: the Field Layout and Input Elements CSS classes
  4. Click Save Config.

  5. If a class you entered isn't used anywhere in your theme yet, ask your developer to rebuild the theme's CSS. See Limits.

CSS classes for the form​

Each field holds the classes for one kind of element of the price request form. To go back to the default, select the checkbox next to the field again (Use system value, Use Default or Use Website, by scope).

All settings of this group: Hyvä Theme.

Field Layout

Field Where the classes go Default
Field Block CSS Class The block around each field with its label and hint. It sets the spacing between fields. mb-4

Input Elements

Field Where the classes go Default
Text Input CSS Class One-line inputs: first name, last name, email, phone number, and text and date custom fields. bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5
Message Textarea CSS Class The Message box. block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500
Dropdown CSS Class Dropdown custom fields. bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5
Radio Button CSS Class The radio buttons of radio custom fields. w-4 h-4 border-gray-300 focus:ring-2 focus:ring-blue-300
Checkbox CSS Class The checkboxes of checkbox custom fields. w-4 h-4 border border-gray-300 rounded focus:ring-3 focus:ring-blue-300 hpp-checkbox

Labels and Messages

Field Where the classes go Default
Field Label CSS Class The label above each field. block mb-2 text-sm font-medium text-gray-900
Field Comment CSS Class The hint below a field, for example under the phone number, attachments and custom fields. mt-2 text-sm text-gray-500
Radio Label CSS Class The text next to each radio button. text-sm font-medium text-gray-900
Checkbox Label CSS Class The text next to each checkbox. text-sm font-medium text-gray-900

What the Hyvä companion does for you​

You don't set these up. The companion module handles them on every Hyvä page:

  • It places the replacement and the price request button by the price, on product pages and in product lists. Where a selector in Developer doesn't match your Hyvä theme, the element shows by the price on its own, as soon as the page loads, so most Hyvä stores leave the selectors as they are. See Theme integration.
  • With Elements to Hide set to Both Price and Add to Cart or Add to Cart Only, it hides the quantity box together with Add to Cart, on the product page and in product lists. See Choose what to hide.
  • It applies Hide "Add to Compare" to the compare links of Hyvä, and Hide Product Options to its swatches and options. See Product options, wishlist and compare.
  • It styles the Button With Alert dialog in the look of your theme. See Button text and colors.

What you should see​

Open a product with the price request form on your Hyvä store and click the request button. The form fields use your classes:

Price request form styled with the Hyvä CSS classes

Limits​

  • A class takes effect only if your theme's stylesheet contains it. Hyvä builds the stylesheet from the classes it finds in the theme and module files, not from the values you enter in the admin. If you enter a class that nothing else in the theme uses, it has no effect until your developer adds it to the theme and rebuilds the CSS.
  • A value you enter replaces the whole default list of classes of that field. Include the default classes you want to keep.
  • These settings change only the price request form. The colors of the replacement buttons are set in Button text and colors.
  • On Luma and other themes, these settings have no effect. The form uses the theme's own form styles.
  • Every field here can differ per store view. See Store views and customer groups.

Troubleshooting​

What's next​

Last reviewed November 28, 2026