I am writing this to inquiere on how I would be able to customise my inline form. My current inline form can be seen on my URL:
I would like to be able to move the black box which says “SIGN UP” to be next to the email fill out section, rather than below it. I have provided a ohoto reference which perfectly shows what I want:
Shopify Forms content lives inside Shadow DOM, so most of the CSS rules in your document do not apply to the form.
One way is to use Javascript code to push your rules into adoptedStylesheets inside this Shadow DOM.
Or you can piggy-back to the way App uses to pass styles into Form.
When shadow DOM is created, app code pulls styles from the window.formStyles and you can add styles there like this from your liquid code:
Create a “Custom liquid” section before your “Shopify Forms” app embed section and paste code like this:
<script>
window.formStyles || (window.formStyles = new Map);
formStyles.set('custom-form-rules', `
form {
flex-direction: row !important;
justify-content: center ;
}
`);
</script>