How can I look up and modify class names in Personalizations?

Personalizations are built by different elements, each of which has a unique Class name. These Class names are ideal for when you want to take the Personalization to the next level and customize the style to your liking.

Example Use case

Suppose you want to use the countdown filter in a personalization that expires today:
Example class name.png
Then the number of days will be 0:

Example class name_2.png

'0 days' is then a bit redundant information, so it is understandable if you prefer not to show it. To accommodate this, we dynamically change the HTML element when the time frame is set to 0. That's where Class names come into play, but then you have to look them up first.

Looking up a Class name

In the browser, press “F12. In Google Chrome, then open DevTools:
Search class name_1.png

Make sure the Elements tab is open:
Search class name_2.png

Click on the following icon:
Search class name_3.png

With the icon activated, you can inspect all elements on the web page. Click near the element you want to modify:
Search class name_4.png

In the Elements tab, you will be referred to the next element:
Search class name_5.png

There you will find all the Class names in the countdown. You can now address these with CSS.

Modifying a class name

Since we want to hide '0 days' when it is set to 0, we grab the Class name 'days_empty':

Search class name_6.png

Then you go to Additional options:
Search class name_7.png

And under CSS you can add the following code:
Search class name_8.png
display:none; will then cause '0 days' to be hidden.