Hello,
I have a contact form in Debutify theme and I’d like the “submit” button (“Poslat →” in my case) to be centered.
Any suggestions for the code edit please?
Thank you!
- Daniel
> > # {{ page.title }}> > {%- unless page.content == blank -%}> > {{ page.content }}> {%- endunless -%}> > {%- form 'contact', class: 'form-vertical' -%}> {%- if form.posted_successfully? -%}>
{{ 'contact.form.post_success' | t }}>
{%- endif -%}> > {%- if form.errors -%}> {{ form.errors | default_errors }}> {%- endif -%}> > > > id="ContactFormName"> name="contact[{{ 'contact.form.name' | t }}]"> placeholder="{{ 'contact.form.name' | t }}"> autocapitalize="words"> autofocus="autofocus"> value="{%- if form.name -%}{{ form.name }}{%- elsif customer -%}{{ customer.name }}{%- endif -%}">>
> > class="{%- if form.errors contains 'email' -%}input-error{%- endif -%}"> name="contact[email]"> placeholder="{{ 'contact.form.email' | t }}"> autocorrect="off"> autocapitalize="off"> pattern="^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$"> required="required"> aria-required="true"> value="{%- if form.email -%}{{ form.email }}{%- elsif customer -%}{{ customer.email }}{%- endif -%}"> {%- if form.errors contains 'email' -%}> aria-invalid="true"> {%- endif -%}>>
> id="ContactFormPhone"> name="contact[{{ 'contact.form.phone' | t }}]"> placeholder="{{ 'contact.form.phone' | t }}"> pattern="[0-9\-]*"> value="{%- if form.phone -%}{{ form.phone }}{%- elsif customer -%}{{ customer.phone }}{%- endif -%}">> > > > > > {%- endform -%}>
{% schema %}> {> “name”: “t:sections.contact_content.name”,> “settings”: > }> {% ends> ~~~