i-dont-see-the-calendar-on-elementor
*I see only the string for shortcode (it’s trimmed in the commend above).
Dumping with shortcode_exists('ea_bootstrap') in the render method of any widget - it returns false. If I dump with any other shortcode slug, for example 'contact-form-7', it returns true. Probably you add the shortcode after elementor's initialization. Can you check on it?
Found it.
You init Frontend container only if is not admin:
// admin panel split loading for optimization
if (is_admin()) {
$admin = $this->container[‘admin_panel’];
$admin->init();
} else {
$frontend = $this->container[‘frontend’];
$frontend->init();
………….
}
Thats why it is missing in the elementor editors mode.
Can you think of fixing it?
I’m not sure if the frontend part is inited all the time it will works fine with Elementor page editor.
At the moment I’m creating an Elementor widget which displays EA bootstrap form with some options available to the shortcode – location, worker, service, layout_cols, width, etc.
I made it works almost perfect – on widget level for Elementor edit mode i’m calling add_shortcode with your frontend controller’s method, but at the end when render the widget I need to call manually jQuery(“.ea-bootstrap”).eaBootstrap(); to init the form.
If you want you can play with the default Elementor shortcode widget and check if you need to do more changes. Of course only if you want your shortcode to be compatible within Elementor editor.
Please login or Register to submit your answer