• WORDPRESS > Créer une nouvelle page

      Créer un fichier dans le dossier de votre thème.

      Par exemple, avec le thème twentyten, le dossier sera : /wp-content/themes/twentyten

       

      Pour notre exemple, notre fichier se nommera test.php


      Insérer ce code dans test.php :
      <?php
      /*
      Template Name: nom_de_la_page
      */
      ?>

       

      Ensuite, insérer ce code pour afficher le header, la sidebar et le footer :
      <?php get_header(); ?>

      <?php get_sidebar(); ?>

      <?php get_footer(); ?>

 

Aucun commentaire

 

Laissez un commentaire