word press customiztion and plugins feb 2012

16
Customization and Plugins Jon Brown jBrownStudios.com | 9seeds.com @jb510 Tuesday, February 19, 13

Upload: jon-brown

Post on 06-May-2015

497 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Word press customiztion and plugins feb 2012

Customization and Plugins

Jon BrownjBrownStudios.com | 9seeds.com

@jb510

Tuesday, February 19, 13

Page 2: Word press customiztion and plugins feb 2012

Prerequisites

Part 1 (geekery)

• Some familiarity with HTML/CSS

• No need for PHP today

Part 2 (non-geekery)

• Some familiarity with a self-hosted WordPress installation

Tuesday, February 19, 13

Page 3: Word press customiztion and plugins feb 2012

Developer Tools

• FTP

• Code Editor

• Browser Tools - FireBug / WebKit Dev Tools

• Local AMP Stack

• Version Control (git/svn)

Tuesday, February 19, 13

Page 4: Word press customiztion and plugins feb 2012

FTPMac

Transmit

FileZilla

CyberDuck

FireFTP for FireFox

Win

WinSCP

FileZilla

FireFTP for FireFox

Tuesday, February 19, 13

Page 5: Word press customiztion and plugins feb 2012

Code EditorMac

Coda 2

Sublime Text 2

TextMate

Win

NotePad++

TextWrangler

Tuesday, February 19, 13

Page 6: Word press customiztion and plugins feb 2012

Wait WaitWhat About

DreamWeaver...

• Yes... you CAN use DreamWeaver, for both FTP and as a code editor, but not many do.

Tuesday, February 19, 13

Page 7: Word press customiztion and plugins feb 2012

Browser Tools

• FireBug or WebKit Dev Tools

• (quick demo)

Tuesday, February 19, 13

Page 8: Word press customiztion and plugins feb 2012

WordPress Tools

• The Codex

http://codex.wordpress.org/

• Developer Documentation

http://codex.wordpress.org/Developer_Documentation

Tuesday, February 19, 13

Page 9: Word press customiztion and plugins feb 2012

Getting Started Creating a theme

1. Understand the WP Core file structure

2. Understand the WP theme template hierarchy

http://codex.wordpress.org/Template_Hierarchy

3. Hooks (Actions and Filters

http://codex.wordpress.org/Plugin_API#Hooks.2C_Actions_and_Filters

Tuesday, February 19, 13

Page 10: Word press customiztion and plugins feb 2012

WP Core File Structure

http://codex.wordpress.org/WordPress_Files

• root

• wp-admin

• wp-includes

• wp-content

Tuesday, February 19, 13

Page 11: Word press customiztion and plugins feb 2012

WP Template Hierarchy

http://codex.wordpress.org/Template_Hierarchy

Tuesday, February 19, 13

Page 12: Word press customiztion and plugins feb 2012

Templates

http://codex.wordpress.org/Stepping_Into_Templates

• Basic template page Header / Content / Footer

(quick demo)

Tuesday, February 19, 13

Page 13: Word press customiztion and plugins feb 2012

Hooks• Actions: Actions are the hooks that the WP core

launches at specific points during execution, or when specific events occur. Your plugin can specify that one or more of its PHP functions are executed at these points, using the Action API.

• Filters: Filters are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen. Your plugin can specify that one or more of its PHP functions is executed to modify specific types of text at these times, using the Filter API.

Tuesday, February 19, 13

Page 14: Word press customiztion and plugins feb 2012

More Practical Things

• How to modify a theme... with a CHILD THEME!

Tuesday, February 19, 13

Page 15: Word press customiztion and plugins feb 2012

One Click Child Theme Plugin

http://wordpress.org/extend/plugins/one-click-child-theme/

Tuesday, February 19, 13

Page 16: Word press customiztion and plugins feb 2012

Lets demo some code (css / php)

customizations

Tuesday, February 19, 13