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 Edit theme
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
Salewith the exact text of the link as it appears in the header. - β οΈ Match visible text exactly, including spaces and special characters.
- Replace
Replace
redwith your desired color. Use:- Standard color names (e.g.,
red,green,blue). - HEX codes (e.g.,
#FFFFFFfor 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_idshould 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 β ThemesClick β’β’β’ β Edit Code
Search for
p-contact.liqudand 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 Edit theme
- 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
Custom inputs in Product page β
You can add custom fields to your product page to collect information from customersβperfect for things like engraving details or personal messages. These values are passed to the cart as line item properties.
liquid
{%- assign product_form_id = 'product-form-' | append: section.id -%}
<label for="cf-{{section.id}}">
<span>**Engraving**</span>
</label>
<input id="cf-{{section.id}}" form="{{ product_form_id }}" type="text" class="fullwidth"
name="properties[**Engraving**]">You can use the same method to add any HTML input type.
Add inputs using Custom Liquid block β
- From your Shopify admin, go to
Online Store β Themes - Find your current theme and click Edit theme
- In the theme editor, navigate to the
Product pagetemplate - In the left sidebar, click Add block under the
Product pagesection. - Select
Custom Liquid - Paste one of the code examples above into the textarea.
NOTE
Replace any placeholder text like
**Engraving**,**Position**, or**It's a gift**with your own labels and property names. Be sure to remove the** **formatting. - Repeat steps
4 - 6for each additional field you want to add.IMPORTANT
Use a separate
Custom Liquidblock for each field you add! - Click Save
Prevent Cart pop-up from opening β
To prevent cart pop-up from opening when adding a product to cart, you can use the following code to prevent it from showing up.
- From your Shopify admin, go to
Online Store β Themes. - Click Edit theme
- Open Theme settings, and scroll to the Custom code section.
- Add the following code to the
JStext areajsdocument.addEventListener("liquid-ajax-cart:request-end", (event) => { event.stopImmediatePropagation(); }, true); - Click Save