Last active
July 19, 2016 19:41
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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