Outils pour utilisateurs

Outils du site


Panneau latéral

webdev:wordpress:start

Wordpress

À noter : Un thème Wordpress doit au moins avoir un template officiel et un fichier style.css, sinon WP peut l'enlever arbitrairement quand on visite la page Apparence.

Articles intéressants sur la sécurité : 1 - 2

Droits des fichiers : http://codex.wordpress.org/Hardening_WordPress#File_Permissions

Plugins indispensables

Plugins recommandés

Méthode création d'un site Wordpress

1 - Créer une base de données locale.

2 - Télécharger dernière version Wordpress (https://wordpress.org/). La copier dans le répertoire local, et penser à donner les droits d'écriture au dossier wp-content.

3 - L'installer. Penser à mettre un préfixe au nom des tables.

4 - Penser à ajouter define('DISALLOW_FILE_EDIT', true); dans le wp-config.php. (il peut être nécessaire d'ajouter define('FS_METHOD', 'direct'); aussi)

5 - Télécharger dernières versions des plugins ci-dessus, et activer ceux nécessaires.

6 - Créer le dossier du thème, avec un index.php et un style.css qui contient l'en-tête suivante :

/*
Theme Name: Twenty Thirteen
Theme URI: http://wordpress.org/themes/twentythirteen
Author: the WordPress team
Author URI: http://wordpress.org/
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: twentythirteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

7 - Copier le header (Exemple de <head> correct) dans index.php, puis activer le thème et commencer l'intégration sans utiliser de boucles Wordpress dans un premier temps.

Voir méthode : Développement web

webdev/wordpress/start.txt · Dernière modification: 14/12/2020 03:21 de dolo