Repository navigation
Description
Hey beta testers!
We are seeking help from the community to ensure a performance improvement for both Elementor and WordPress is implemented. We would greatly appreciate your feedback! π
[UPDATE]: We added a newer build for Elementor Core.
Background
WordPress version 6.9 introduced a new method for enqueueing CSS and improving performance for Block Themes and the Block Editor.
While this method improved the Block Editor's performance, it caused some issues with how Elementor handles enqueueing styles for templates. Both methods are similar, but the one introduced by WordPress prevented some Template Styles from loading in some cases. As a workaround we temporarily disabled this feature to ensure this problem wouldn't occur.
Since then, we've been working closely with the WordPress team to ensure full compatibility with this method, and they have generously helped us by introducing new improvements to this method regarding CSS loading in Classic Themes as well.
The Problem
While this issue was initially reproduced by some users, we were never able to reproduce it ourselves, leading us to conclude this problem may be influenced by other environmental factors beyond our control.
The patches introduced here seem to solve the initial issues caused by the new WordPress method without us needing to disable it. But we cannot release them without verifying with the community (or those initially affected by the issue) if they indeed solve this issue.
We need your help!
Please help Elementor and the WordPress Core team with verifying if this patch fixes the incompatibility introduced.
Instructions
Here's how you can help us:
- On a testing/staging WordPress environment install WordPress version 7.0-RC2-62153 using the WordPress Beta Tester plugin (more info here).
- Install the Hello Elementor theme.
- Install this special build of Elementor Core v4.1.0-20260403.1727.
- (Optional) Install and Activate Elementor Pro.
- Clear, Purge, and Disable any level of cache to ensure cache cannot affect the outcome.
- Open the local Template Library on your site, and create a new Elementor Template.
- Add widgets inside your Template (or import from the Elementor Library), and Publish it.
- If you have only Elementor Core installed go back to the Elementor > Editor > Templates, locate the template you just created and copy the template shortcode. If you have Elementor Pro installed, skip this step.
- Create a new Page and Edit it with Elementor.
- For Core-only users: Drag and Drop the Shortcode widget, and paste the shortcode of the Template you've just created.
For Pro users: Drag and Drop the Template widget and select the template you've published in step 7. - Publish the page and view it on the Frontend.
- Share the results with us in the comments below, (include a copy of your Elementor System Info. in case there is a problem). π
Expected behavior
The template styles should be loaded correctly on the frontend.
Thank you all for your contribution! π
Special thanks to these users who helped us with this issue:
- @zchgdn
- @rf-999
- @jpguisa
- @adrian-dimata
- @chrizzly47
- @dennismenken
- @philb74
- @hykocx
Activity
jpguisa commentedon Apr 9, 2026
@nicholaszein Hey there, I tested this on a fresh env and everything looks good meanwhile in the site where I originally had this template widget issue I am having the same problem but only with my custom theme, if I switch to any other theme it works correctly. I ended up realizing that I had to remove the wp_footer() function from my footer.php, not sure why. I am using Elementor Theme builder for Header and Footer. Removing the wp_footer() indeeds solve the problem and it doesn't bring any issues by doing that but I am curious why other themes have it and the template widget styles loads correctly. Any hint?
nicholaszein commentedon Apr 9, 2026
Hi @jpguisa, thank you so much for sharing your feedback! π
This will really help us! πͺ
Would you be so kind to share your Elementor System Info for the existing site with the footer problem?
We would also love to take a look at your fitter site part code to see if we can find a reason why it only works if you remove
wp_footer()from the template.Also, take a look at this documentation to see how Elementor handles template parts, this might help figure out the problem with your footer:
https://developers.elementor.com/docs/themes/
If you don't mind sharing the full custom theme, this would allow us to test it out in loco. But it's completely up to you.
Thank you again for taking the time to test this, we really appreciate it! π
jpguisa commentedon Apr 9, 2026
@nicholaszein I can provide full access to my staging site. If that works, let me know how could I send you the credentials.
Mij-Strebor commentedon Apr 9, 2026
I had no problems with this script. I created a Header template with some Atomic elements and then put the template into a Template widget in a page. Displayed the page and it was correct.
system-info-localhost-09-04-2026.txt
louiswol94 commentedon Apr 9, 2026
@jpguisa Thank you so much! This will really help us!
Do you mind creating a temporary login link on the staging site via https://wordpress.org/plugins/temporary-login/ - and send it to me at louis@elementor.red?
Warm regards
Louis
nicholaszein commentedon Apr 9, 2026
Thank you for the confirmation @Mij-Strebor! We really appreciate it! πππ«Ά
louiswol94 commentedon Apr 9, 2026
Hi everyone,
I am happy to report that it seems like we have found the root cause of the original issue.
It is much thanks to @jpguisa for giving us access to his staging environment and assisting with debugging. So thank you, we could not have done it without you!
I will add some technical details here for anyone interested:
The Problem:
Elementor Pro's
get_footer()first callswp_footer()intheme-support-footer.php, then loads the theme'sfooter.phpinsideob_start()/ob_get_clean()intheme-support.phpto discard its output (and cause it to not be loaded again later - via arequire_once). But if the theme'sfooter.php(usually a non "Elementor aware" theme) also callswp_footer(), it runs a second time inside the discarded buffer.When
wp_footer()runs inside this discarded buffer:<link>tags are printed (to the discarded buffer)$wp_styles->doneResult: WordPress thinks the styles were already printed (they're in "done"), so it never prints them again. But the actual
<link>tags were discarded and never reached the page.The Fix:
Add
remove_all_actions( 'wp_footer' )before loading the theme'sfooter.php- matching the existing pattern we already have forwp_headinget_header():Affected: Any theme with
wp_footer()infooter.phpthat doesn't useelementor_theme_do_location()would have had the bug of missing CSS.If anyone else that experienced the original issue would like to verify that the fix in
theme-support.phpworks that would be really helpful πWe are still running our full automated test suite to verify that it does not cause any unexpected side effects, but so far from manual tests everything looks good.
We will also be able to remove the original patch we added in Elementor Core - cc @westonruter
Thanks everyone! π
[-]β‘Help Elementor and WordPress test a performance improvement! π§[/-][+]β β‘Help Elementor and WordPress test a performance improvement! π§[/+]nicholaszein commentedon Jun 17, 2026
Hey @jpguisa and @Mij-Strebor,
thank you so much for helping with this initiative! π
Cheers! π₯