In this tutorial, I’ll guide you through the process of creating a powerful customization β your very own popup triggers based on the active language in Polylang. π»π
π Dive deep into the code as we explore how to show or hide popups dynamically, tailored to the language your visitors are experiencing. No more generic popupsβmake your content relevant and targeted.
π§ We’ll dissect the process step by step, ensuring you understand the intricacies of linking Elementor with Polylang to achieve a seamless language-based trigger system. π¬ποΈβπ¨οΈ
π If you’re ready to take control of your Elementor popups, subscribe now and stay tuned for more advanced customization tips! ππ
#Elementor #Polylang #WebDevelopment #PopupTriggers #Multilingual
Github repo:
https://github.com/ArneDeBelser/elementor-custom-popup
Chapters: 0:00 Introduction & example
1:10 Explain Elementor internal workings
2:24 Prepare plugin and folder structure
3:00 Create the base classes
4:12 Convert plugin to Singleton
4:48 Introduce proper namespacing and class imports
5:14 Inject controls into Elementor popup widget triggers
6:28 Recap explanation of how we inject the controls
6:54 Add the control header
8:02 Instantiate some option variables
8:26 Write the options logic
9:55 Recap explanation of how options logic works
10:58 Create the last two controls (select2 and switcher)
11:58 Create the AJAX endpoints
13:02 Write the JavaScript file
16:26 Fixing some typos
16:42 Outro and thanks!