I've just created a new page template in WordPress, starting from the default code in page.php. For the new template, I want to remove the footer and header information (logo, menu, etc), while keeping all the other properties of the default template. How can I do this?
When I remove
<?php get_footer(); ?>
from the new template, the footer disappears, which is okay, I guess.
But when I remove
<?php get_header();
get_template_part('templates/page', 'header'); ?>
all the styling disappears together with the header. Plus I'm left with a padding all around the page and the page name is gone too. How can I remove the header and the padding while keeping the old styling?
Thanks!