PHP code which create a new template with name "Novice".
/**
* Template Name: Novice
*
* A custom page template without sidebar.
*
* The "Template Name:" bit above allows this to be selectable
* from a dropdown menu on the edit page screen.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
get_header();
If you want that the new template will appear correctly in the dropdown menu, you must put it in a new file placed in the directory "\wordpress\wp-content\themes\[theme name]"
Ni komentarjev:
Objavite komentar