Hello @csj89,
I’m sorry but currently this feature is not available with the plugin but we will surely try to implement it in next releases. Meanwhile please add following code to your theme functions.php to disable or exclude page transition on certain pages.
add_action( 'wp', 'exclude_page_transtion' );
function exclude_page_transtion() {
if( is_home() || is_front_page() || is_singular( 'product' ) ) {
if( class_exists( 'Page_Transition' ) ) {
$page_transition = Page_Transition::get_instance();
remove_filter( 'wp_headers', array( $page_transition, 'add_ie_compatible_header' ) );
remove_action( 'wp_enqueue_scripts', array( $page_transition, 'enqueue_styles' ), 1000 );
remove_action( 'wp_enqueue_scripts', array( $page_transition, 'enqueue_scripts' ) );
remove_action( 'wp_head', array( $page_transition, 'head_scripts' ) );
remove_action( 'wp_footer', array( $page_transition, 'footer_scripts' ) );
remove_filter( 'body_class', array( $page_transition, 'body_class_names' ), 100 );
remove_action( 'wp_head', array( $page_transition, 'head_styles' ) );
}
}
}
This will disable transition on blog page, home static page and custom post type ‘product’ singles. Change ‘product’ in is_singular(‘product’) function to your custom post type.
Please let me if this help or not.
Thanks.