Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

keh3084 on "How to remove menu(navigation),header&footer in specific template?"

$
0
0

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 all articles
Browse latest Browse all 8245

Trending Articles