Streaming live at 10am (PST)

Apply Collection Style Text Color to Hover State Only

#1

Is it possible to apply text color from the collection style setting (from the CMS) to the hover state only instead of the normal state??

#2

You could try some custom code. Here’s an example

#3

Ahhh @samliew you’re the best! I had no idea you could use CMS fields in the custom code like this.

Thank you, thank you!!!

  • M
#4

hey @MackenzieChild @samliew

Could you help me regarding adding a custom code? I want the drop-down menus to take their hover state background colors dynamically from the color field in the Collection.

I am referring to the “Workshops” and “Courses” drop down boxes under “Activities” menu item.

Where should I add the custom code, and what kind of a custom code it should be? Thank you in advance!

https://preview.webflow.com/preview/framer-roumi?utm_source=framer-roumi&preview=2df509b288952c0be89b17477631b3c6