Guest User

fix for Enfold Main logo with WP-Rocket Lazy-Load

a guest
Oct 23rd, 2019
978
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Compatibility fix for Enfold Main logo with WP-Rocket Lazy-Load */
  2. add_filter('avf_logo_final_output', 'mip_fix_enfold_logo_wp_rocket');
  3. function mip_fix_enfold_logo_wp_rocket($logo) {
  4. return str_replace("<img","<img data-no-lazy=\"1\"",$logo);
  5. }
RAW Paste Data