get_option( 'page_404_template' );
if($bicycleshop_a13->get_option( 'page_404_template_type' ) === 'custom' && $custom_404_page !== ''&& $custom_404_page !== '0'){
//make query
$query = new WP_Query( array('page_id' => $custom_404_page ) );
//show
bicycleshop_page_like_content( $query );
// Reset Post Data
wp_reset_postdata();
return;
}
//default template
else{
define( 'BICYCLESHOP_NO_RESULTS', true );
get_header();
// Elementor `404` location
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'single' ) ) {
$_title = '404'.esc_html__('The page you are looking for can\'t be found!', 'bicycleshop');
$subtitle = sprintf(
/* translators: Go to our home page(link) or go back to previous page(link) */
esc_html__( 'Go to our %1$s or go back to %2$s', 'bicycleshop' ),
'' . esc_html__( 'home page', 'bicycleshop' ) . '',
'' . esc_html__( 'previous page', 'bicycleshop' ) . ''
);
bicycleshop_title_bar( 'outside', $_title, $subtitle );
}
get_footer();
}