Added snippets but now can’t make New Posts
-
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.
3CstudioThe page I need help with: [log in to see the link]
- The topic ‘Added snippets but now can’t make New Posts’ is closed to new replies.