custom-elementor-source
custom-elementor-source copied to clipboard
Create a custom remote template library that override the Elementor one
custom-elementor-source
This plugin is an example of overriding Elementor template library as detail here. This plugin is never meant to use in the production.
Installation
- Clone this repository or download it as a zip file.
- Extract and move the plugin folder into the
wp-content/pluginsfolder. - Edit
includes/source.phpfile and replace the following constants' value with yours:$api_info_url: The URL that returns the information of your library.$api_get_template_content_url: The URL that returns the detail of specific template id (Notice the%d).
- Activate the plugin.
- Manually sync the library using Elementor > Tools.
- Create/edit a post and see the new remote library.
Notes
- This plugin is just an example of how we override Elementor library. You should put the source class in your plugin (recommended) or your theme.