A look at the basics of custom theming for Wordpress, using Adobe Illustrator, Photoshop and Fireworks. Presented at a cross over Meetup of Hartford Wordpress & Hartford Adobe, sponsored by Adobe and New Horizons Training Facility
3. Insanity:
doing the same thing over and over again
and expecting different results.
~Albert Einstein
ARE WE INSANE?
4. Insanity:
doing the same thing over and over again
and expecting different results.
~Albert Einstein
clearly Einstein never designed with Wordpress
ARE WE INSANE?
5. BIT ABOUT ME
I’m no Adobe Expert
I’m totally bummed about Fireworks
I’m Pro-Efficiency
15,000 Member Social Chat Site
Multiple Small Retail WP Sites
Local Direct Marketing
6. What Are
We Building?
• header.php
• index.php
• sidebar.php
• footer.php
• archive.php
• single.php
• comments.php
• page.php
• search.php
• 404.php
• style.css
• functions.php
7. What Are
We Building?
• header.php
• index.php
• sidebar.php
• footer.php
• archive.php
• single.php
• comments.php
• page.php
• search.php
• 404.php
• style.css
• functions.php
69. USING CUSTOM.CSS
Super Easy Route
// Load the theme stylesheets
function theme_styles()
{
// Load all of the stylesheets needed for all pages
wp_enqueue_style( 'main',
get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'custom',
get_template_directory_uri() . '/css/custom.css' );
}
add_action('wp_enqueue_scripts', 'theme_styles');
Function.php Route
70. USING CUSTOM.CSS
@import url("../custom.css"); CSS Route
Super Easy Route
// Load the theme stylesheets
function theme_styles()
{
// Load all of the stylesheets needed for all pages
wp_enqueue_style( 'main',
get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'custom',
get_template_directory_uri() . '/css/custom.css' );
}
add_action('wp_enqueue_scripts', 'theme_styles');
Function.php Route
71. USING CUSTOM.CSS
@import url("../custom.css"); CSS Route
Super Easy Route
// Load the theme stylesheets
function theme_styles()
{
// Load all of the stylesheets needed for all pages
wp_enqueue_style( 'main',
get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'custom',
get_template_directory_uri() . '/css/custom.css' );
}
add_action('wp_enqueue_scripts', 'theme_styles');
Function.php Route
<link
rel="stylesheet"
href="<?php
bloginfo('template_url');
?>/css/
my_custom_css.css"
type="text/css"
media="screen"
/>
Manual Header.php Route
84. Linking the fonts you’ve chosen
Step 1:
Step 2: Tell your CSS where you want it, & which font.
Set the Functions.php file to load the fonthouse.
85. Linking the fonts you’ve chosen
Step 1:
Step 2: Tell your CSS where you want it, & which font.
Set the Functions.php file to load the fonthouse.
Google and Typekit
do have cheater plugins ;)
86. Linking the fonts you’ve chosen
Step 1:
Step 2: Tell your CSS where you want it, & which font.
Set the Functions.php file to load the fonthouse.
<?php
function add_google_fonts() {
wp_register_style('GoogleFonts', 'http://fonts.googleapis.com/css?family=Adamina|Montagna');
wp_enqueue_style('GoogleFonts');}
add_action('wp_print_styles', 'add_google_fonts');
?>
Google and Typekit
do have cheater plugins ;)
87. Linking the fonts you’ve chosen
Step 1:
.entry-‐content {
font-‐family: "Adamina";
font-‐size: 16px; line-‐height: 25px;}
h1 {font-‐family: “Montagna”;}
Step 2: Tell your CSS where you want it, & which font.
Set the Functions.php file to load the fonthouse.
<?php
function add_google_fonts() {
wp_register_style('GoogleFonts', 'http://fonts.googleapis.com/css?family=Adamina|Montagna');
wp_enqueue_style('GoogleFonts');}
add_action('wp_print_styles', 'add_google_fonts');
?>
Google and Typekit
do have cheater plugins ;)