Dynamically load web components or JavaScript libraries to any post or page on your WordPress website.
Just add a shortcode to the content of a post or a page, for which you want to load a web component or JavaScript library.
The shortcode can be called with an URL or with the name of the component:
[load-webcomponent src="<url>"]
[load-webcomponent name="<identifier>"]
The corresponding URLs for each name can be set on the settings page. You will find the settings page in the Settings menu in your administration area.
Support
Please have a look at the
Github repo.
From Your WordPress Dashboard
- Visit “Plugins -> Add New”,
- Search for “Load Web Components”,
- Install the plugin and activate it from your plugins page.
From
WordPress.org
- Download Load Web Components from the plugin directory on wordpress.org,
- Upload the folder to your “/wp-content/plugins/” directory using your favorite method (ftp, sftp, scp, etc…),
- Activate Load Web Components from your Plugins page.