Popup System

Unfortunately the popup system is pretty jerry-rigged right now. It was a fine workaround until we went multi-lingual, and now between having 2 forms for each login, and registration page, per language we’re up to 12 different forms and since we can’t translate the popups to pull in different forms, it means we have 12 different popups as well. And each additional language will add 4 more forms and 4 more popups.

Popup Triggers:

The popups are triggered by classes applied to the login and register buttons, they’re also sometimes triggered by using the Popup Maker’s built in menu triggers in the WP menu system.

Popup Wrappers:

Each form inside of the popups is wrapped with a .pp-form-wrapper class so I can apply different styles when the form is in a popup vs. when it’s on a normal page. (Doesn’t really make sense since I could have targeted the popup class as parent instead. I don’t remember why i did this now, something to do with needing an extra element to make the loading bar show up the way I wanted it to.)

Last updated

Was this helpful?