Hi Mariya,
Since you’re using a page builder, what happens if you use the shortcode instead of the block?
For example: [fdm-menu id="1"]
https://doc.fivestarplugins.com/plugins/food-and-drink-menu/user/advanced/shortcodes
Hi Jay,
Unfortunately I cannot try this because I get the error message as soon as I activate the plugin – it displays on the elementor page and I have no way of saving the page after inputting the shortcode.
Thanks,
Mariyam
Hi Mariyam,
I’m not sure I follow. You mentioned in your first message that the error happened when trying to add the item via the Elementor builder. Now you are saying that you can’t even activate our plugin. Are these two separate things? If not, what is the exact issue you are having?
I just tested our plugin with Elementor and it works fine if you just add a text element or shortcode element, and then put the fdm-menu shortcode in it.
With that in mind, I’d like to know the exact steps you are taking to recreate this error.
Thanks!
Hi Jay,
Thanks for your quick response.
Yes sorry for not clarifying earlier, when I activate your plugin I get this error on the Elementor page – this is the issue. But the error popped up after I created the menu itself, and now it’s there constantly when the plugin is activated.
This prevents me from adding the shortcode on the page.
Here’s what the error looks like on the page: https://ibb.co/hmzYSHm
Thanks,
Mariyam
Thank you for that. So that line of code is used to load your chosen menu style into the block editor. My guess is that the page is still being recognized as the block editor, even though Elementor is activated (because, if it weren’t, then that code wouldn’t run) and that there is some conflict with your instance of Elementor where it is not letting the call to the chosen style return correctly.
What happens if you make a change to the “Menu Formatting” option (at the top of the Basic settings page), save that settings page, and then go back to your page with the elementor builder? Does the warning still come up?
Also, is this only happening with debug enabled?