Hi,
Usually when I create a subpage with a form or something that needs to run php or javascript code, I like to write this code directly in the html structure () or above the html (<?php). In Wordpress, it turns out that it’s not so easy there.
Javascript code in the tag is missing on the WP-Website. I figured out that it appears and works by adding the “Do not enqueue” smart action in Pinegrow WP.
Because of the main content structure (Site Content) in Wordpress (everything above is header.php, everything below is footer.php) php code written above the html wouldn’t be exported as well. I could try to write it inside the main (Site Content) area of the page but it feels a little weird?
I think I would try to embed the php and javascript code somehow and export the page with the form as a block or page template, that I can use in Wordpress after adding the subpage in the pages tab in WP.
Does this make sense? Or do you know a better way dealing with complex forms or other things that need php or javascript to work in Wordpress?