Fixing strange condition, return true on every pagetemplate
This commit is contained in:
parent
834d93bf9f
commit
57777e4eaa
|
@ -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' ) ) );
|
||||
|
|
Reference in New Issue