In one of my page's content, I put a shortcode from the WpForms plugin to display a contact form.
When I access this page by using routes from my SPA, the JS and CSS files of WpForms are not attached.
However if I'm opening this page with its direct link, the JS and CSS files are attached.
How can I load the WP plugin's assets only on the contact page route?
Hello,
In one of my page's content, I put a shortcode from the WpForms plugin to display a contact form. When I access this page by using routes from my SPA, the JS and CSS files of WpForms are not attached. However if I'm opening this page with its direct link, the JS and CSS files are attached.
How can I load the WP plugin's assets only on the contact page route?
Thank you.