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

Remove blue border around sections of contact form and move section titles to top of lines

Solved

Remove blue border around sections of contact form and move section titles to top of lines

flammagreg
Trailblazer
276 0 39

Hi guys,

 

Two questions on my contact us page. Website: seraneeva.com.

 

How can I move the section titles on the contact pages to be above the entry rectangles? Pic for reference:

Screenshot 2024-05-28 at 12.21.08 AM.png

 

 

 

How can I remove the blue border around each section when clicked in on the contact form? 

Screenshot 2024-05-28 at 8.52.13 AM.png

Accepted Solutions (2)

BSSCommerce-HDL
Shopify Partner
2305 834 908

This is an accepted solution.

Hi @flammagreg

You can try this code by following these steps:

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file base.css, theme.css, styles.css or theme.scss.liquid

Step 3: Insert the below code at the bottom of the file -> Save 

 

#ContactForm input, #ContactForm textarea {
   outline: none !important;
}

 

Here is result: 

BSSTechVenture_0-1716903943651.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

BSSCommerce-HDL
Shopify Partner
2305 834 908

This is an accepted solution.

Hi @flammagreg

You can try this code by following these steps:

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid. After you insert my code inside it

BSSTechVenture_0-1716905727578.png

{%- if full_url contains 'contact-us' -%}
      <script>
        let input_contact_list = document.querySelectorAll('.input-wrapper input, .input-wrapper textarea');
        let label_title = '';
        if(input_contact_list.length > 0) {
          input_contact_list.forEach((item) => {
             label_title = item.getAttribute('placeholder');
             id = item.getAttribute('id');
             item.setAttribute('placeholder', '')
             item.insertAdjacentHTML("beforebegin", `<label style="margin-bottom: 5px" for='${id}'>${label_title}</label>`);
          })
        }
      </script>
      {% endif %}

Here is result: 

BSSTechVenture_1-1716905776686.png

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 2 (2)

BSSCommerce-HDL
Shopify Partner
2305 834 908

This is an accepted solution.

Hi @flammagreg

You can try this code by following these steps:

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file base.css, theme.css, styles.css or theme.scss.liquid

Step 3: Insert the below code at the bottom of the file -> Save 

 

#ContactForm input, #ContactForm textarea {
   outline: none !important;
}

 

Here is result: 

BSSTechVenture_0-1716903943651.png

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

BSSCommerce-HDL
Shopify Partner
2305 834 908

This is an accepted solution.

Hi @flammagreg

You can try this code by following these steps:

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid. After you insert my code inside it

BSSTechVenture_0-1716905727578.png

{%- if full_url contains 'contact-us' -%}
      <script>
        let input_contact_list = document.querySelectorAll('.input-wrapper input, .input-wrapper textarea');
        let label_title = '';
        if(input_contact_list.length > 0) {
          input_contact_list.forEach((item) => {
             label_title = item.getAttribute('placeholder');
             id = item.getAttribute('id');
             item.setAttribute('placeholder', '')
             item.insertAdjacentHTML("beforebegin", `<label style="margin-bottom: 5px" for='${id}'>${label_title}</label>`);
          })
        }
      </script>
      {% endif %}

Here is result: 

BSSTechVenture_1-1716905776686.png

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now