How to remove menu(navigation),header&footer in specific template?
-
Here is my theme’s template.
<?php global $javo_this_single_page_type; $javo_this_single_page_type = get_post_meta( get_the_ID(), 'single_post_type', true ); /* Single Item Type Fixed */ $javo_this_single_page_type = 'item-tab'; add_filter('body_class', 'javo_this_single_type_callback'); function javo_this_single_type_callback($classes) { global $post, $javo_this_single_page_type; $classes[] = 'javo-'.$javo_this_single_page_type; return $classes; } if( true ){ /* Single Item Template file Fixed */ get_template_part('templates/parts/single', 'item-tab'); }else{ if( !empty( $javo_this_single_page_type ) ){ get_template_part('templates/parts/single', $javo_this_single_page_type); }else{ get_template_part('templates/parts/single', 'item-one-page'); } };
I want to remove navigation, header, footer in this template. (single-item.php)
But there is no codes like “get_header(); ?> or get_footer(); ?>”…
How can I remove them?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to remove menu(navigation),header&footer in specific template?’ is closed to new replies.