Use Custom Class feature to customize Customization Options on your Product Page
In this Article, we will walk you through how to use the custom class feature to customize a parituclar personalization option on your Product Page!
While editing a Layer inside Artwork Editor, you might come across this feature:
As you might have already noticed, with elements of the same type, Teeinblue will use the same HTML structure, and same class for them. Please see this image below:
custom class
name for a particular customization option.This is useful when you want to specifically target a particular customization option to modify. Now let's say I want to hightlight all the custom text field for the names of the Girl and the Dog, let's start by adding custom classes for them!
STEP 1. PREPARATION
- Let's start by adding the custom class for the Dog Name layer.
- Now continue to do the same for the Girl Name layer
- Be sure to update your Campaign after that to apply the change. The customization field should now has your newly added class name
STEP 2. ADDING THE CUSTOM CSS
- Log in to your Shopify Admin > Go to Themes > Edit code
- Look for section called
theme.liquid.
Then, useCtrl + F
orCommand + F
(on Mac Devices) to find the tag</head>
. After that, add the following liquid right above the</head>
tag.
{{ 'teeinblue-custom.css' | asset_url | stylesheet_tag }}
teeinblue-custom.css
. That file will be located under Asset
folder. You can actually name it however you want to be.- Under
Asset
folder, create a new CSS file. Be sure to name itteeinblue-custom.css
- Once you are done, you can begin to customize these fields however you want!
!important
tag with some CSS properties as well.- View your changes on the Product Page
Updated on: 06/09/2024
Thank you!