• Resolved 3cstudio

    (@3cstudio)


    I added the snippet:

    add_filter( 'sgo_js_minify_exclude', 'js_minify_exclude' );
    function js_minify_exclude( $exclude_list ) {
    $exclude_list[] = 'give-donor-dashboards-app';
    $exclude_list[] = 'give-donation-summary-script-frontend';
    
    return $exclude_list;
    
    }

    in order to make the page in question show properly.

    Now, I cannot create a New Post — it gives the blank white screen of death on that “new post”.

    A colleague suggested I exclude wp-admin from Siteground’s Minify JS — that looked like this:

    add_filter( 'sgo_js_minify_exclude', 'js_minify_exclude' );
    function js_minify_exclude( $exclude_list ) {
    if( is_admin() )
    return $exclude_list;
    $exclude_list[] = 'give-donor-dashboards-app';
    $exclude_list[] = 'give-donation-summary-script-frontend';
    
    return $exclude_list;
    
    }

    but I’m still getting a white screen for New Post.

    Any suggestions or notice any issues with the above attempts to exclude wp-admin from the Minify JS option in Siteground’s “Speed Optimizer”? The end goal is to include the GiveWP donor dashboard in the minified exclusions so that it can be viewed and the site can gain a bit of page load speed, and ultimately new Posts can be added to the blog.

    Thanks in advance!

    Steve C.
    3Cstudio

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter 3cstudio

    (@3cstudio)

    Update: that same colleague that suggested a snippet to add had another snippet to try adding (at line 3 of the previous snippet version):

    if( is_admin() )
        return $tag;

    …and this appears to have been the solution, as I can now view the Donor Dashboard as well as create a New Post.

    • This reply was modified 1 year, 4 months ago by 3cstudio.
    Plugin Author Shea Bunge

    (@bungeshea)

    Glad you could get this sorted!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Added snippets but now can’t make New Posts’ is closed to new replies.