There will come a time when your theme should do something special for a certain page. Maybe your About page should display the author biographies or avatars, or perhaps you want your Contact page to include your phone number and address at the top, in addition to whatever other content appears.
Decide on the page that you want to customize, and remember its name. Open your theme's page.php
file. This template file is used when displaying a single page. Place the cursor in the template where you want your custom content to be displayed, and then insert the following code:
<?php if(is_page('Page Name')) { // Put special content code here } ?>
Replace Page Name
with the name that you previously determined. Save the file and view the special page in your browser. Whatever content you added specifically for that page should appear. However, if you navigate to a different page, then the special content will not appear.