Solved

Custom Styling forms dissapears

  • 19 March 2021
  • 2 replies
  • 463 views

Userlevel 1
Badge +2

Hi,

We’ve got custom styling for alot of the klaviyo forms on our website, however the elemnts only seem to have dynamic classes, and it’s hard for us to style because the classes keep changing and our form visuals change and we have to go back in to fix it.

For example:
 

.dryLyK.dryLyK.dryLyK.dryLyK.dryLyK.dryLyK {
/* some styling here. generated by klaviyo */
}

but if we use `.dryLyK` as a class target sometimes it will be a different class and all our styling is gone.

Kind Regards,
Ian Hogers

icon

Best answer by retention 19 March 2021, 16:49

View original

2 replies

Userlevel 7
Badge +57

@IanHogers - If most of your forms that you are styling are “embedded” - Klaviyo does have a “Legacy Form” mechanism where you can you use a standard HTML/CSS form and the class/ids are static.  Would that work for your use case?

See this Documentation:

Userlevel 1
Badge +2

Hi @retention ,

Thanks, we’ll give that a try!

Reply