Appearance
Snippets β
Change header link color β
To customize the color of a link in your header, ensure you're using the latest version of Etheryx. Follow these steps carefully:
Steps to change the link color β
From your Shopify admin, go to
Online Store β Themes
.Click Customize
Open Theme settings, and scroll to the Custom code section.
Add the following CSS to the CSS area:
css#mainHeader [data-name="Sale"] { color: red }
- Replace
Sale
with the exact text of the link as it appears in the header. - β οΈ Match visible text exactly, including spaces and special characters.
- Replace
Replace
red
with your desired color. Use:- Standard color names (e.g.,
red
,green
,blue
). - HEX codes (e.g.,
#FFFFFF
for white).
- Standard color names (e.g.,
Click Save
IMPORTANT
- Include spaces and special characters: Ensure text matches exactly, such as
Sales & Distribution
. - Avoid special characters in URLs: Do not use quotes (
"
) or unusual characters in your URLs. - If the code doesnβt work: Verify that the text in the link uses standard letters without unsupported characters.
Examples based on common link texts β
Link text = Sales & Distribution
css
#mainHeader [data-name="Sales & Distribution"] { color: green }
Link text = Final saLe
css
#mainHeader [data-name="Final saLe"] { color: red }
Link text = SALE
css
#mainHeader [data-name="SALE"] { color: blue }
Add inputs to the contact form β
The contact form supports custom HTML input types for collecting additional information:
Supports all standard HTML input types
Each field requires a specific naming format:
name="contact[information_id]"
The
information_id
should briefly identify the collected informationThese identifiers appear in contact notifications
Each identifier must be unique within the form
This feature allows you to collect specialized information from customers beyond the standard name
, email
, and message
fields.
From Shopify admin, go to
Online Store β Themes
Click Actions β Edit Code
Search for
p-contact.liqud
and open the file.Inside the file search for:
liquid{%- when '@app' -%} <p class="itsapp" {{ block.shopify_attributes }}>{% render block %}</p>
Right after it, paste your desired code. Here's a quick example:
liquid{%- when 'request-type' -%} <p class="request-type"> <label for="request-type">...</label> <select id="request-type" name="contact[request_type]"> <option>OpenThinking</option> </select> </p>
Inside the file search for:
{ "type": "@app" },
Right after it, paste the following code
js{ "type": "fname", "name": "Name", },
- replace
"fname"
with your input name. - replace
"Name"
with you input name.
- replace
Click Save
liquid
{%- when 'request-type' -%}
<div class="request-type">
<label for="request-type">What is this regarding?</label>
<select id="request-type" name="contact[request_type]">
<option>Returns</option>
<option>Shipping</option>
<option>Custom order</option>
<option>Other</option>
</select>
</div>
Re-order inputs β
If you, now, want to re-order your newly created input.
- From Shopify admin, go to
Online Store β Themes
- Click Customize
- From top dropdown, select
Pages β Contact
- In the left panel, go to
Contact page
- Here, drag and drop the block to the desired order.
- Click Save