Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Having some difficulty to change the register page for my website

Having some difficulty to change the register page for my website

thisiskishor
Excursionist
22 1 7

The login and register pages don't match design-wise even after updating both pages with custom codes of a similar kind. I want the register page (https://fitnessnbalance.com/account/register) to look like the login page, (https://fitnessnbalance.com/account/login), but no matter how much I try, the register page is not changing, what might be causing the issue?

Also, the button color on the bottom of the login page doesn't match with the top button. How do I change it?

Image for reference: 

Screenshot 2024-06-10 at 10.35.22 PM.png

-----

If it helps, this was the code that I used for the login page


Main Login (New - Sample)

{{ 'customer.css' | asset_url | stylesheet_tag }}

{%- style -%}






  .section-{{ section.id }}-padding {
    padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px;
    padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px;
  }
h1#login {
    font-family: 'Whitney';
    font-size: 23px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 24px;
}.welcome-header-small {
    font-size: 18px;
    font-weight: 400;
    color: #535766;
}.field__input, .customer .field input {
    font-size: 14px;
    border: 1px solid #d4d5d9;
    padding: 11px 12px;
    line-height: 16px;
    color: #282c3f;
}.field__label, .customer .field label {
    left: calc(var(--inputs-border-width) + 2rem);
    top: calc(1rem + var(--inputs-border-width));
    margin-bottom: 0;
    pointer-events: none;
    position: absolute;
    transition: top var(--duration-short) ease,font-size var(--duration-short) ease;
    color: rgba(var(--color-foreground),.75);
    letter-spacing: .1rem;
    line-height: 1.5;
    color: #94969f;
    font-size: 16px;
    position: absolute;
    pointer-events: none;
}.midtitle {
    display: flex;
    font-size: 14px;
}.midtitle a {
    display: contents;
    cursor: pointer;
    color: #000000;
    font-weight: 700;
  font-size: 13px;
}.midLinks {
      display: flex;
    margin: 19px 0 5px 0;
  font-size: 13px;
    color: rgba(40,44,63,.8);
}.midLinks a {
    cursor: pointer;
    color: #000000;
    font-weight: 700;
  font-size: 13px;
}.customer button {
    cursor: pointer;
    background-color: #262626;
    text-align: center;
    padding: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    margin: 1rem 0 1.5rem;
    border-radius: 6px;
}.button, .shopify-challenge__button, .customer button, button.shopify-payment-button__button--unbranded {
    min-width: 100%;
    min-height: calc(4.5rem + var(--buttons-border-width) * 2);
}footer.footer.color-background-1.gradient.section-footer-padding {
    display: none !important;
}.footer__content-bottom {
    display: none !important;
}.customer:not(.account):not(.order) {
    padding-bottom: 7rem;
    padding-top: 6rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}.customer.login {
    background-color: #fff;
}.midtitle {
    margin: 2px;
}.midLinks {
    margin: 40px 0 0 0px !important;
}a.signup {
    background-color: #ededed;
    width: 100%;
    padding: 4px;
    border-radius: 6px;
}h1#recover {
    font-family: 'Whitney';
    font-size: 23px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}input:hover {
    border: none !IMPORTANT;
}
@media screen and (max-width: 750px) {
  .login a {
    display: contents !important;
}
}
  @media screen and (min-width: 750px) {
    .customer:not(.account):not(.order) {
    padding-left: 3.5rem !important;
    padding-right: 3.5rem !important;
}
    .section-{{ section.id }}-padding {
      padding-top: {{ section.settings.padding_top }}px;
      padding-bottom: {{ section.settings.padding_bottom }}px;
    }
  }
{%- endstyle -%}

<div class="customer login section-{{ section.id }}-padding">














  
  <h1 id="recover" tabindex="-1">
    {{ 'customer.recover_password.title' | t }}
  </h1>
  <div>
    <p>
      {{ 'customer.recover_password.subtext' | t }}
    </p>

    {%- form 'recover_customer_password' -%}
      {% assign recover_success = form.posted_successfully? %}
      <div class="field">
        <input type="email"
          value=""
          name="email"
          id="RecoverEmail"
          autocorrect="off"
          autocapitalize="off"
          autocomplete="email"
          {% if form.errors %}
            aria-invalid="true"
            aria-describedby="RecoverEmail-email-error"
            autofocus
          {% endif %}
          placeholder="{{ 'customer.login_page.email' | t }}"
        >
        <label for="RecoverEmail">
          {{ 'customer.login_page.email' | t }}
        </label>
      </div>
      {%- if form.errors -%}
        <small id="RecoverEmail-email-error" class="form__message">
          <svg aria-hidden="true" focusable="false" role="presentation" viewBox="0 0 13 13">
            <circle cx="6.5" cy="6.50049" r="5.5" stroke="white" stroke-width="2"/>
            <circle cx="6.5" cy="6.5" r="5.5" fill="#EB001B" stroke="#EB001B" stroke-width="0.7"/>
            <path d="M5.87413 3.52832L5.97439 7.57216H7.02713L7.12739 3.52832H5.87413ZM6.50076 9.66091C6.88091 9.66091 7.18169 9.37267 7.18169 9.00504C7.18169 8.63742 6.88091 8.34917 6.50076 8.34917C6.12061 8.34917 5.81982 8.63742 5.81982 9.00504C5.81982 9.37267 6.12061 9.66091 6.50076 9.66091Z" fill="white"/>
            <path d="M5.87413 3.17832H5.51535L5.52424 3.537L5.6245 7.58083L5.63296 7.92216H5.97439H7.02713H7.36856L7.37702 7.58083L7.47728 3.537L7.48617 3.17832H7.12739H5.87413ZM6.50076 10.0109C7.06121 10.0109 7.5317 9.57872 7.5317 9.00504C7.5317 8.43137 7.06121 7.99918 6.50076 7.99918C5.94031 7.99918 5.46982 8.43137 5.46982 9.00504C5.46982 9.57872 5.94031 10.0109 6.50076 10.0109Z" fill="white" stroke="#EB001B" stroke-width="0.7">
          </svg>
          {{ form.errors.messages['form'] }}
        </small>
      {%- endif -%}

      <button>
        {{ 'customer.login_page.submit' | t }}
      </button>

      <a href="#login">
        {{ 'customer.login_page.cancel' | t }}
      </a>
    {%- endform -%}
  </div>

  <h1 id="login" tabindex="-1">
    {{ 'customer.login_page.title' | t }} <span class="welcome-header-small">or</span> Signup
  </h1>
  <div>
    {%- if recover_success == true -%}
      <h3 class="form__message" tabindex="-1" autofocus>
        <svg aria-hidden="true" focusable="false" role="presentation" viewBox="0 0 13 13">
          <path d="M6.5 12.35C9.73087 12.35 12.35 9.73086 12.35 6.5C12.35 3.26913 9.73087 0.65 6.5 0.65C3.26913 0.65 0.65 3.26913 0.65 6.5C0.65 9.73086 3.26913 12.35 6.5 12.35Z" fill="#428445" stroke="white" stroke-width="0.7"/>
          <path d="M5.53271 8.66357L9.25213 4.68197" stroke="white"/>
          <path d="M4.10645 6.7688L6.13766 8.62553" stroke="white">
        </svg>
        {{ 'customer.recover_password.success' | t }}
      </h3>
    {%- endif -%}
    {%- form 'customer_login', novalidate: 'novalidate' -%}
      {%- if form.errors -%}
        <h2 class="form__message" tabindex="-1" autofocus>
          <span class="visually-hidden">{{ 'accessibility.error' | t }} </span>
          <svg aria-hidden="true" focusable="false" role="presentation" viewBox="0 0 13 13">
            <circle cx="6.5" cy="6.50049" r="5.5" stroke="white" stroke-width="2"/>
            <circle cx="6.5" cy="6.5" r="5.5" fill="#EB001B" stroke="#EB001B" stroke-width="0.7"/>
            <path d="M5.87413 3.52832L5.97439 7.57216H7.02713L7.12739 3.52832H5.87413ZM6.50076 9.66091C6.88091 9.66091 7.18169 9.37267 7.18169 9.00504C7.18169 8.63742 6.88091 8.34917 6.50076 8.34917C6.12061 8.34917 5.81982 8.63742 5.81982 9.00504C5.81982 9.37267 6.12061 9.66091 6.50076 9.66091Z" fill="white"/>
            <path d="M5.87413 3.17832H5.51535L5.52424 3.537L5.6245 7.58083L5.63296 7.92216H5.97439H7.02713H7.36856L7.37702 7.58083L7.47728 3.537L7.48617 3.17832H7.12739H5.87413ZM6.50076 10.0109C7.06121 10.0109 7.5317 9.57872 7.5317 9.00504C7.5317 8.43137 7.06121 7.99918 6.50076 7.99918C5.94031 7.99918 5.46982 8.43137 5.46982 9.00504C5.46982 9.57872 5.94031 10.0109 6.50076 10.0109Z" fill="white" stroke="#EB001B" stroke-width="0.7">
          </svg>
          {{ 'templates.contact.form.error_heading' | t }}
        </h2>
        {{ form.errors | default_errors }}
      {%- endif -%}

      <div class="field">        
        <input
          type="email"
          name="customer[email]"
          id="CustomerEmail"
          autocomplete="email"
          autocorrect="off"
          autocapitalize="off"
          {% if form.errors contains 'form' %}
            aria-invalid="true"
          {% endif %}
          placeholder="{{ 'customer.login_page.email' | t }}"
        >
        <label for="CustomerEmail">
          {{ 'customer.login_page.email' | t }}
        </label>
      </div>

      {%- if form.password_needed -%}
        <div class="field">          
          <input
            type="password"
            value=""
            name="customer[password]"
            id="CustomerPassword"
            autocomplete="current-password"
            {% if form.errors contains 'form' %}
              aria-invalid="true"
            {% endif %}
            placeholder="{{ 'customer.login_page.password' | t }}"
          >
          <label for="CustomerPassword">
            {{ 'customer.login_page.password' | t }}
          </label>
        </div>
                <p class="midtitle"> {{ 'customer.login_page.forgot_password' | t }}
                 <a href="#recover">
         Reset
        </a>
              </p>
<p class="midLinks">By continuing, I agree to the <a href="/termsofuse">Terms of Use</a> &amp; <a href="/privacypolicy">Privacy Policy</a></p>
     
      {%- endif -%}

      <button>
        
        {{ 'customer.login_page.sign_in' | t }}
      </button>

      <a class="signup" href="{{ routes.account_register_url }}">
        Create account
      </a>

    {%- endform -%}
  </div>

  {%- if shop.checkout.guest_login -%}
    <div>
      <hr>
      <h2>{{ 'customer.login_page.guest_title' | t }}</h2>

      {%- form 'guest_login' -%}
        <button>
          {{ 'customer.login_page.guest_continue' | t }}
        </button>
      {%- endform -%}
    </div>
  {%- endif -%}
</div>

{% schema %}
{
  "name": "t:sections.main-login.name",
  "settings": [
    {
      "type": "header",
      "content": "t:sections.all.padding.section_padding_heading"
    },
    {
      "type": "range",
      "id": "padding_top",
      "min": 0,
      "max": 100,
      "step": 4,
      "unit": "px",
      "label": "t:sections.all.padding.padding_top",
      "default": 36
    },
    {
      "type": "range",
      "id": "padding_bottom",
      "min": 0,
      "max": 100,
      "step": 4,
      "unit": "px",
      "label": "t:sections.all.padding.padding_bottom",
      "default": 36
    }
  ]
}
{% endschema %}
Replies 3 (3)

mrashid
Shopify Partner
290 24 28

@thisiskishor paste code in base.css

.customer button {
    background: #262626 !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 1px solid rgb(234 49 24);
    padding: 10px !important;
}
a.signup {
    background: #262626 !important;
    color: #fff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: 1px solid rgb(234 49 24);
    padding: 10px !important;
}
- Need a Shopify developer? Chat on WhatsApp +923068683199
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
thisiskishor
Excursionist
22 1 7

Hi Mrashid, 
Thank you for the solution, It worked as expected; however, the fonts and the form box outline look a bit off, is there any way to match the Login page style for the registration page?


Image for reference: 

Screenshot 2024-06-12 at 6.37.04 PM.png

 

Also, it would be amazing if the registration page had t he following text above the signup button.

Screenshot 2024-06-12 at 6.40.36 PM.png

mrashid
Shopify Partner
290 24 28

@thisiskishorpaste code in base.css

mrashid_0-1718205768455.png

.customer .field input {
    font-size: 14px;
    border: 1px solid #d4d5d9;
    padding: 11px 12px;
    line-height: 16px;
    color: #282c3f;
}
.customer>h1 {
    font-family: 'Whitney';
    font-size: 23px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 24px;
}
- Need a Shopify developer? Chat on WhatsApp +923068683199
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution