Created
October 9, 2024 10:20
-
-
Save Lonsdale201/563e6e77659605b1055410a2160c5469 to your computer and use it in GitHub Desktop.
WpRocket - Lazy rendering - elementor footer issue hotfix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// place the code in the child theme functions.php or a custom code snippets plugin like FluentSnippets | |
// wprocket reference https://docs.wp-rocket.me/article/1835-automatic-lazy-rendering | |
// you can add other classes in a new line | |
// if saved the code run the clear the Priority Elements function (wprocket) | |
add_filter( 'rocket_lrc_exclusions', function( $exclusions ) { | |
$exclusions[] = 'elementor-location-footer'; | |
return $exclusions; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment