How can I access variables from theme in child theme? [closed]
I am using a WordPress theme (Kalium Theme) as a base and extending it with my own child theme, which includes javascript & php files.
The parent theme uses a image carousel plugin (Flickity) to display e.g. product image galleries doesn’t work exactly the way I want it to.
I need access to the flickity instance outside of the Kalium main libraries.
Can you advise me on how best to access the carousel objects and manipulate them in javascript without directly changing Kalium Core files? I am talking about adding event listeners to the flickity instance and changing settings in the instance.
Leave an answer