• 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

    • This topic was modified 8 years, 2 months ago by chezzone.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author pootlepress

    (@pootlepress)

    Hi Malte,

    Do you have the same issue without that function – could you test?

    Jamie

    Plugin Author pootlepress

    (@pootlepress)

    Sorry I forgot to say – could you raise a support ticket directly with us for these ??

    Here’s the link https://www.pootlepress.com/support-form/

    tks

    J

    Thread Starter chezzone

    (@chezzone)

    Hi Jamie,

    thanks for the reply. I’ve raised a ticket for the first issue, like you requested.

    Info = deactivating the function brings the LIVE-Edit back to work ??

    The second issue is not so serious to me, so I didn’t raised a ticket for it.

    thanks
    Malte

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Live Edit not working with “async .js load” / First row text issue’ is closed to new replies.