Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Basics of Unique Theme Development | WordCamp Manchester | 28th June 2014

The Basics of Unique Theme Development | WordCamp Manchester | 28th June 2014

Many WordPress websites use hand-crafted themes intended solely for one website. Creating a WordPress theme from scratch can seem daunting at first, but it is not as tricky as you may think. The talk is aimed at people who want to create a one-off theme for a single website (eg. a client project, personal blog), rather than building a theme for distribution. It will require previous knowledge of WordPress, HTML, CSS and basic familiarity with PHP.

Samantha Miller

June 28, 2014
Tweet

More Decks by Samantha Miller

Other Decks in Programming

Transcript

  1. What is a ‘unique’ theme? 1. Designed and built for

    one purpose 2. Part of a bespoke build
  2. What are the advantages? 1. You’re not restricted 2. Streamline

    your theme 3. You know your own code is not malicious 4. It’s fun!
  3. What are the disadvantages? 1. Need to know HTML, CSS,

    basic PHP, maybe Javascript/jQuery 2. Takes time to build 3. Needs fully testing
  4. Approach 1. Mentality 2. Start with a clean slate 3.

    Don’t reinvent the wheel 4. Start small
  5. Basics of a theme 1. Style.css header comments 2. Headers

    and footers 3. Functions.php 4. Everything else depends on the project
  6. Build from the ground up 1. Break down design 2.

    Functionality 3. Mark-up & style 4. Enhance
  7. Quickfire tips 1. Make your own starter theme 2. Use

    functions instead of functionality 3. Integrate plugins your theme 4. Comment your code 5. Seek help if you need it