Blank Page Template with Header only

Hi there,

With below code, I am able to create a “blank page template”. No header, footer,sidebar etc. I tried to add some line to that code to add sticky header menu to page but I failed. What should I add? get_header()? tried several syntax but failed.

You can check the page here

* Template Name: Blank Page
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>

Hello there,

Don’t exclude get_header(); and get_footer();. Otherwise, all of CSS and JS files won’t be printed. The sticky header menu is actually handled in the main theme’s JS.