Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.