• Hey guys,

    So basically the title. My theme is Elementor.

    I created a page template and without get_header() and get_footer() the styling is completely messed up. How can I make it so I don’t need those functions?

    Many thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Then you need to include CSS and Java URLs of your site. means you will create a file named “my-header.php” and “my-footer.php” add css and java urls inside and use in your custom post/page template.

    <?php include 'my-header.php';?>
     <?php include 'my-footer.php';?>
    
    Moderator bcworkz

    (@bcworkz)

    If you want a page without the usual header and footer elements, your template still must do the “wp_head” and “wp_footer” actions at appropriate places so supporting resources can be loaded. These do not necessarily generate any visible content, but they do cause important resources to be loaded.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I create a post / page without needing get_header() and get_footer()?’ is closed to new replies.