Removing the header/footer in theme template
-
Hi there,
I am trying to remove the header/footer in a page without screwing up the content area. I’ve tried just deleting the get_header();
tag and theget_footer();
tag but that only seems to work for the footer. As soon as I take out the header tag it removes all of the styles from the page. Any thoughts?Page in question:
https://thehoneydos.ca/home/
Template file unedited:
<?php /* Template Name: CustomPageT2 */ get_header(); ?> <header class="ht-main-header"> <div class="ht-container"> <?php the_title( '<h1 class="ht-main-title">', '</h1>' ); ?> <?php do_action( 'total_breadcrumbs' ); ?> </div> </header><!-- .entry-header --> <div class="ht-container"> <div id="primary" class="content-area"> <main id="main" class="site-main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'template-parts/content', 'page' ); ?> <?php // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> <?php endwhile; // End of the loop. ?> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); ?> </div> <?php get_footer();
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Removing the header/footer in theme template’ is closed to new replies.