Resolved
Reported for: Toolset Types 3.4
The issue happens because WordPress has two ways of including the admin bar on the front-end:
wp_body_open
if it’s called in the theme template file (the default way since WordPress 5.4)wp_footer
otherwise (the legacy way)Toolset Types needs the legacy way because it needs to analyze the whole rendered content before showing its link in the Admin Bar.
As a consequence, Types features code to disable the new way (in wp_body_open
) in favor of the legacy way (in wp_footer
).
Elementor on the other hand only supports the new way (via wp_body_open
).
We believe that Elementor should also support the legacy way because a lot of themes are not using the wp_body_open tag
. If a theme does not use this tag, the “Edit with Elementor” link will not show either (even without Toolset Types).
Add the following code snippet to your site inside your theme’s functions.php
file:
add_action( 'init', function() { add_action( 'wp_body_open', 'wp_admin_bar_render', 0 ); });
Please note that this snippet will restore the “Edit with Elementor” link, but will also re-introduce the issue for the “Design with Toolset” link.
Thanks so much for your attention to this. I foward these findings to Elementor’s support team. The workaround is a suitable solution for now, and I’m very grateful to you for providing it.
I’m having the same issue with a new site I’m building. The code snippet doesn’t resolve it.
Adding it to functions.php does resolve it, but adding it to Toolset Custom Code didn’t.
Suggestion for Toolset: do not enable the legacy version if “Design with Toolset” is disabled from the settings, which is my case
This was fixed in the Elementor 3.0.13 update.