Skip Navigation

“Edit with Elementor” missing from top Admin Bar when Types plugin is active

Resolved

Reported for: Toolset Types 3.4

Symptoms

The issue happens because WordPress has two ways of including the admin bar on the front-end:

  • Hooking into wp_body_open if it’s called in the theme template file (the default way since WordPress 5.4)
  • Hooking into 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).

Workaround

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.

5 thought on "Edit with Elementor" missing from top Admin Bar when Types plugin is active

  • 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.

  • Suggestion for Toolset: do not enable the legacy version if “Design with Toolset” is disabled from the settings, which is my case

Comments are closed