Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How i can add html page in wordpress theme as a template page?

user-image
Question ajoutée par Muhammad Umar Khalid , Web Developer , Vistabit
Date de publication: 2014/02/11
Utilisateur supprimé
par Utilisateur supprimé

Basm allah alrahman alrahim

 

like what Muhammad Majid Saleem said , but don't forget to put /* before and */ after

 

<?php

/*

Template Name: Portfolio

*/

?>

<html>

   <head>

       <! -- your head content -->

   </head>

   <body>

       <! -- your head content -->

   </body>

</html>

 

there is another thing , and that is you will find a problem at navigation menus [ navbar ] , and to correct that want to add some new tags and coding , and remember that changing the style of your website by adding different page is very bad specially for the eye [ Design ] , so you have2 choices , one of them to build your site on the page you want to add , or just add the parts you want from the HTML page to the page part of the WordPress layout

 

To build your website on that HTML you can make one of2 thing , you may take snapshot of that page with Photoshop [ or similar ]  and cut it with the roles of this video , or re-code the page if you are the one that design it 

Muhammad Majid Saleem
par Muhammad Majid Saleem , Senior PHP Developer / Project Manager , SwaamTech

Please follow instructions to do so:

- Go to your theme folder.

- Make copy of page.php and name it of your choice.

- Open new created file.

- Write <?php Template Name: Portfolio ?> as first line.

- Put your HTML under that line.

- Go to Pages and you will find  "Profile" as template name in right column of Add / Edit Page.

 

If you want to create a template for a specific page then follow the instructions below:

- Go to your theme folder.

- Make copy of page.php and name it like page-portfolio.php.

- Open new created file.

- Put your HTML under that line.

- Go to pages section in admin panel and create a new page with title "Portfolio".

 

Enjoy !!

More Questions Like This