Bronson quick how to client-proof your word press theme

15
sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza HOW TO “CLIENT-PROOF” YOUR WORDPRESS THEME Bronson Quick

description

Bronson Quick – How to “client-proof” your WordPress Theme WordcampNZ 2012

Transcript of Bronson quick how to client-proof your word press theme

Page 1: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

HOW TO “CLIENT-PROOF” YOUR WORDPRESS THEME Bronson Quick

Page 2: Bronson quick   how to client-proof your word press theme

OVERVIEW Why we “client-proof” our WordPress sites

The WordPress Release Philosophy

Leverage WordPress core

Avoid “plugin syndrome”

Think like Nostradamus

Simplicity trumps complexity

Use more page templates!

Always have a backup plan

2 of 15 sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

I was gonna talk about code but decided that I might send you to sleep!

Page 3: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

WHO AM I? Brisbane based WordPress Developer

Working with different CMS for 12 years

Die hard Smashing Pumpkins fan!

Organiser of the WordPress Brisbane Meetup group

Co-organiser of WordCamp Gold Coast

Just a guy who is obsessed with WordPress!

3 of 15

Page 4: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

WHY WE “CLIENT-PROOF” SITES Less support

Happier clients

We’d rather an inbox full of new leads than an inbox

of stressed clients!

Our clients can always update everything on their site!

When we code we have to think about “how can the

client break this?”

When the clients are happy, you’re happy!

4 of 15

Page 5: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

THE WORDPRESS RELEASE PHILOSOPHY Too many preferences means you can’t find any of them

Preferences really substantially damage QA and testing

Preferences make integration and good UI difficult

The point of a good program is to do something specific

and do it well

Preferences can confuse many users

5 of 15

http://codex.wordpress.org/Release_Philosophy

Page 6: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

LEVERAGE WORDPRESS CORE

6 of 15

http://wordpress.org/extend/plugins/fluency-admin/

Don’t do this!!!

Page 7: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

AVOID “PLUGIN SYNDROME” “There’s a plugin for that”

Don’t install a plugin that has 60 options when

the client will only change 1 of those options

Embrace the GPL and adapt other developers

code

7 of 15

Friends don’t let other friends install too many WordPress plugins!

Page 8: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

THINK LIKE NOSTRADAMUS What will happen if the client updates the WordPress core or any of the plugins?

Don’t hack core!!!! EVER!!!! PERIOD!!!! *gggggggggrrrrrrrr*

If you alter a plugin that doesn’t have hooks you can use to alter it then you need to:

1) Turn off updates

2) Keep an eye on the plugin and apply any security updates they released to the

plugin you altered.

We’re all futurists thanks to WordPress because everything will always be backwards

compatible. (Except for add_contextual_help…”patches welcome ”)

8 of 15

In the future, all of your clients sites are safe!

Page 9: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

USE MORE PAGE TEMPLATES I’ve seen too much logic stuffed into sidebar.php

Too many WordPress people only think about ‘Full

Width’ and ‘Default Template’

get_header(); can be get_header ( ‘kiwi’ );

Template Name: Kiwi Page

9 of 15

Page templates are easier for you and your clients!

Page 10: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

ALWAYS HAVE A BACKUP PLAN BackupBuddy for small clients

VaultPress for the bigger ones!

Never trust a “hosting backup”

10 of 15

http://vaultpress.com/

http://http://pluginbuddy.com/purchase/backupbuddy/

Page 11: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

SIMPLICITY TRUMPS COMPLEXITY

Developers gonna develop!

Users gonna use!

Time for some examples!

11 of 15

If your Mum can update it then you’re doing it right!

https://gist.github.com/BronsonQuick

Page 12: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

SLIDESHOWS

12 of 15

DD Slider Custom Post Type

Page 13: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

TESTIMONIALS

13 of 15

Custom Post Type

Page 14: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

CLICK A BUTTON AND GET A TABLE!

4 of 15

Less confusing than WP-Table Reloaded

Page 15: Bronson quick   how to client-proof your word press theme

sennza | (07) 3040-1545 | [email protected] | http://www.sennza.com.au/ | Twitter: @sennza

THANKS ALOT

15 of 15

http://core.trac.wordpress.org/ticket/13237