Customize the text color of a contact form

Solved

Customize the text color of a contact form

ActivAdv
Tourist
4 0 1

Hi, im working on a theme section template by GemPages but i have a problem:

ActivAdv_0-1719243166566.png


I'd like to have the text color in black for each of the 3 fields, but the most important issue is the email field.

Seems that the color of the cursor and the text is white...

How could i solve it?

Section preview: https://mockstyle.com/a/gempages?version=v7&shop_id=516242170353550504&theme_section_id=519612440602...

Thanks!

Accepted Solution (1)

BSSCommerce-B2B
Shopify Partner
1972 564 566

This is an accepted solution.

Hi @ActivAdv ,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file gp-global.css, base.css, theme.css, styles.css, custom.css or theme.scss.liquid

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

#contact_form input, #contact_form textarea {
    color: #000 !important;
}

Here is result: 

BSSCommerceB2B_1-1719244014962.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 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

View solution in original post

Replies 5 (5)

BSSCommerce-B2B
Shopify Partner
1972 564 566

This is an accepted solution.

Hi @ActivAdv ,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file gp-global.css, base.css, theme.css, styles.css, custom.css or theme.scss.liquid

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

#contact_form input, #contact_form textarea {
    color: #000 !important;
}

Here is result: 

BSSCommerceB2B_1-1719244014962.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 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


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

BSS-TekLabs
Shopify Partner
2401 695 831

Add the following code snippet to the file theme.css or base.css.


input[type='email']{

color: var(--g-c-text-1, text-1)

}

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


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

Made4uo-Ribe
Shopify Partner
10036 2385 3012

Hi @ActivAdv 

Check this one. 

  1. From you Admin page, go to Online Store > Themes
  1. Select the theme you want to edit
  2. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  3. Then place the code below at the very bottom of the file.

 

input.gp-form-item, textarea.gp-form-item {
color: black !important;
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1719244926656.png

     

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

ActivAdv
Tourist
4 0 1

thankyou guys, o solved the problem following your solutions!!
Thanks so much

GemPages
Shopify Partner
5625 1262 1278

Hi @ActivAdv,

At GemPages, adding custom CSS to an Email element by follow these steps:

  1. Open the Editor: Select the page you want to edit from the GemPages Dashboard and open it in the editor
  2. Right Click to element you want add custom CSS: In the left sidebar, navigate to the "Advanced" tab.
    GemPages_0-1719296833669.png

     

  3. Add CSS color:#000!important
    GemPages_1-1719296872056.png

     

    Hope this can help you,
    Best regards,
    GemPages Support Team
 
 

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center