bshiluk / vue-wordpress

Use Vue.js and the WP REST API to build WordPress themes as SPAs with dynamic routing, HMR for development, SEO enabled, and SSR capable. Demo:
http://vue-wordpress-demo.bshiluk.com
491 stars 112 forks source link

Use Wordpress shortcodes in a component #14

Open DevJulia opened 4 years ago

DevJulia commented 4 years ago

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.