Live Edit not working with “async .js load” / First row text issue
-
Hey there,
I don’t know if my issue has something to do with the recent update to 3.7.0., because I did not edit my page for some time. Meanwhile, I’ve implemented a PHP function to load .js files async. Now the Live-edit does not work…the edit symbols appear but nothing happens. no editing possible!
This is the function:
/*function to add async to all scripts*/ function js_async_attr($tag){ # Do not add async to these scripts $scripts_to_exclude = array('blabla.js', 'blabla2.js'); foreach($scripts_to_exclude as $exclude_script){ if(true == strpos($tag, $exclude_script ) ) return $tag; } # Add async to all remaining scripts return str_replace( ' src', ' async="async" src', $tag ); } add_filter( 'script_loader_tag', 'js_async_attr', 10 );
Any ideas ?
———————————————————–
Another little issue (FYI):I’ve edited my landing page yesterday. Before the changes I placed an empty 30px row at first place to gain some space between header and content. All good! I’ve changed it to some text (just one line) in the first row. On desktop view…fine…on mobile: the text disappeared (without doing anything) the row triples the height and messed up the whole design. This only happens when I put some text in the first row
You can see it here:
https://www.daily-concept.net/testforgood/My system: WP 4.7 / WC 2.6.11 / Storefornt Pro 4.0.1 / PPB 3.7.0
Kind regards
Malte
- The topic ‘Live Edit not working with “async .js load” / First row text issue’ is closed to new replies.