Français | English

Comment créer des modèles avec Wordpress

vendredi, mars 26, 2010 By: bgauthier

Ever wondered how you can create multiple templates that you could choose from in wordpress? Well it’s actualy quite simple, juste create a new php file in your theme an add the following code at the top of your page.

<?php
/*
Template Name: Name of your template
*/
?>

This will add a list of templates in the right section of your page editor. You can then choose what template to apply to your page.

  • Share/Bookmark

Leave a Reply