You can put your own stamp on virtually any theme. You just need a basic understanding what how WordPress works. This session will explore the basic functions and templates that make WordPress tick. Then you'll get your hands dirty by customizing a number of popular free and premium themes. Wanna go all the way? We'll also discuss the steps to create your own theme from scratch. Presented at the first WordCamp Minneapolis/St. Paul (wordcampmsp).
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Making WordPress Your Own: Theme Customization & Creation
1.
2.
3.
4.
5.
6. Templates
• WordPress uses only a few
basic templates
• This means less places to make
changes that affect the whole site
• A handful of simple changes can
make a big difference
13. PSA: Our friend the style sheet
• Cascading style sheets (CSS)
are not to be feared
• Simple, text-based instructions
in a specific format
• Follow the format and make
your dreams come true
21. 3. Color Scheme
• Determine element colors and
chance in the style sheet
• ColorZilla Plugin (FireFox) can help
http://www.colorzilla.com/firefox/
22. 4. Fonts
Basic HTML font styles are easy to
control via style sheet
p, H1, H2, H3...
p {
font-family:"Lucida Grande", "Lucida Sans
Unicode", "Lucida Sans", Verdana, Tahoma,
sans-serif;
font-size:1em;
color:#000;
}
23. Web fonts/@fontface
Allows you to use virtually any font as
a true text element. No longer limited
by traditional browser-safe fonts
(Arial, Verdana, Times, etc.)
http://kernest.com/ http://typekit.com/
26. 5. Plugin style hacks
• Don’t be afraid to dig into
plugin stylesheets to make
further customizations
27. General CSS tweak tips
• Use Web Developer Toolbar (FireFox)
or similar CSS identification tool
• Select the element you want to change
• Find that style in the CSS and change it
• Go slow and only change what you
understand
• Save and preview often
29. 1. Custom pages
• Provides flexibility to change layout
based on needs
<?php
/*
Template Name: Calendar
*/
?>
30. 2. Modifying the Loop
• Change way posts appear
on blog homepage
index.php, The loop starts here:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
and ends here:
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
35. Customization tips
• Make changes in stages, easier
to go back/troubleshoot
• Keep a unaltered copy of the
theme handy, just in case
• No matter how much you
customize always credit the
original theme designer
46. DIY theme resources
• WordPress Codex: Theme Development
http://codex.wordpress.org/Theme_Development
• How to Build a Custom WordPress
Theme from Scratch
http://www.blog.spoongraphics.co.uk/
tutorials/how-to-build-a-custom-wordpress-
theme-from-scratch