1. Find Your WordPress Page ID and Post ID without a Plugin
Finding your WordPress page ID or post ID is an extremely quick process. To find a page ID, open your WordPress dashboard and click on Pages > All Pages.
Then, select the page that you need to find the ID for. Here, I have chosen my Contact page:
Once the page has opened, you need to look at the URL in your web browser’s address bar. Here, you will find the page ID number displayed within the page URL.
To find out a WordPress post ID, follow the same procedure. Log into your WordPress dashboard, then select Posts > All Posts.
Click on a specific post that you need the ID for. Once you are in the post Editor, view the post’s URL in your web browser’s address bar to find the ID number.
Add This piece of code in your themes functions.php
display: none; }
If you want to apply this code to a different page, you have to replace the “your page id” with the ID of the specific post or page you want to remove the header and footer from.