Fixing strange condition, return true on every pagetemplate

This commit is contained in:
Holger Könemann 2016-12-07 08:29:57 +01:00
parent 834d93bf9f
commit 57777e4eaa
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ if ( ! function_exists( 'understrap_scripts' ) ) {
$loadit = false;
}
}
if ( is_page_template( ( 'page-templates/vertical-one-page.php' ) || is_home() || is_single() ) && $loadit ) {
if ( ( is_page_template ( 'page-templates/vertical-one-page.php' ) || is_home() || is_single() ) && $loadit ) {
wp_enqueue_script( 'vertical-one-page', get_template_directory_uri() . '/js/vertical-one-page.js',
array( 'jquery' ), true );
$page_for_posts = strtolower( get_the_title( get_option( 'page_for_posts' ) ) );