Add fonts, colors, and styles to completely customize your Back in Stock notification sign-up form.

You can edit the button colors and button text colors from within the app, but for styling the other elements of the form, you need to use CSS.

 

Where do I add the code?

The elements on the Back in Stock notification request form have CSS selectors that you can customize.

 

Some themes have a pre-existing stylesheet you can add your CSS to (e.g., custom.css), but this is not always the case. If your theme doesn't, we recommend adding your CSS code within style tags added to the end of your product-template.liquid, product-form.liquid, or equivalent theme file:

 <style>
{your CSS styling code}
</style>

 

Alternatively, you can add the style tags and CSS code to the <head> section of your theme.liquid file.

 

The CSS Selectors

Here's the full list of available CSS selectors for the back in stock form:

Selector

Description

#esc-oos-form

The container of the whole form.

#esc-out-of-stock-inputs

The container of the email and SMS inputs.

.esc-out-of-stock-title

The title of the form.

.esc-out-of-stock-subtitle

The subtitle of the form that appears under the title.

.esc-sms-container

The container of the SMS input elements.

.esc-sms-select-country-title

The container of the SMS country select dropdown menu.

.esc-sms-input

The SMS input field.

.esc-btn

The buttons on the form. This can be customised with CSS code from the Settings page in the app.

.esc-notification.esc-sms-notification

The text when a customer types in their phone address.

.esc-email-container

The container of the email input.

.esc-notification.esc-email-notification

The text when a customer types in their email address.

.esc-error

The text of the error message when a notification sign-up fails.

.esc-success

The text of the message when a notification sign-up succeeds.

Example:
<style> 

.esc-out-of-stock-title {

color: green;
}

</style>


Would create something like this:

<a href="https://s3.amazonaws.com/helpscout.net/docs/assets/58340d11c697916f5d0538bf/images/587cf2ea90336009736c75e2/file-qvKwARm1M5.png" target="_blank" rel="nofollow noopener noreferrer">https://s3.amazonaws.com/helpscout.net/docs/assets/58340d11c697916f5d0538bf/images/587cf2ea90336009736c75e2/file-qvKwARm1M5.png</a>












If you are still having troubles, feel free to contact our friendly support team and they will do it for you.

You can also schedule a meeting with our Product Manager here.