Skip to content

Instantly share code, notes, and snippets.

@davechu
Last active July 19, 2016 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davechu/e318f345d2d4b7f2b1e127d4be23104d to your computer and use it in GitHub Desktop.
Save davechu/e318f345d2d4b7f2b1e127d4be23104d to your computer and use it in GitHub Desktop.
This change's purpose is to correctly remove Backstretch from pages that use the Utility Pro landing page. This fix goes in enqueue-assets.php.
// Load remaining scripts only if custom background is being used
// and we're on the home page or a page using the landing page template
// dave bugfix - had to move the "not" to be specifically on is_front_page to take backstretch out of landing page.
if ( ! get_background_image() || ( ( ! is_front_page() || is_page_template( 'page_landing.php' ) ) ) ) {
return;
}
/*** old code so you can see what changed.
if ( ! get_background_image() || ( ! ( is_front_page() || is_page_template( 'page_landing.php' ) ) ) ) {
return;
}
***/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment