I'm trying to programmatically trigger the close function on the Navigation block (I'm using swup and want to have the nav close when a new page dynamically loads). I see that it's using the InteractivityAPI library but can't find any documentation on how to trigger any of the built-in events programmatically.

Background: I'm in a child theme of Twenty Twenty Four theme.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.