I’m new to WordPress and make my own simple theme. I learn different examples and google a lot, but still don’t have the answer (stackoverflow is dead now).
I make my own custom pages (about, contact page etc), add them in the Pages section in the wp-admin, all according to this article :
<?php /* Template Name: About */ ?> <?php get_header(); ?> <div id="content" class="column-full"> <div id="main" class="fullwidth"> About </div> <!-- main --> </div> <!-- content --> <?php get_footer(); ?>
But my custom pages look very strange in comparison with index.php. I open the page code in a browser and see that the <header> is fully empty and all the content from the header is in the body.
What did I do wrong?
- The topic ‘get_header() doesn't work with custom pages’ is closed to new replies.