+ All Categories
Home > Design > Completing Your Design with WordPress

Completing Your Design with WordPress

Date post: 17-May-2015
Category:
Upload: chelsea-otakan
View: 876 times
Download: 0 times
Share this document with a friend
Popular Tags:
20
Completing Your Design with WordPress or why coding your own designs shouldn’t be scary
Transcript
Page 1: Completing Your Design with WordPress

Completing Your Design with WordPress

or why coding your own designs shouldn’t be scary

Page 2: Completing Your Design with WordPress

Can’t I Hire Someone To Do This?

if you trust them enough.

Page 3: Completing Your Design with WordPress

But I’m a Right-Brain person.

XHTML and CSS were built for designers

It’s all about the look

XHTML and CSS are tools, not programming languages

No algorithms and calculations

Page 4: Completing Your Design with WordPress

XHTML BASICS

XHTML tags give content structure

<div> This is content inside the div tag. The next line closes the head tag with a / </div>

opens the div

closes the div

Page 5: Completing Your Design with WordPress

ITS A BOX.

<div>

</div>

opens the div

closes the div

This is content inside the div tag.

Page 6: Completing Your Design with WordPress

Tags with PropertiesWe can add properties to tags.

We can use properties to name each box.

<div id=”sidebar”>

</div>

This is content inside a divwith an id of

sidebar.

<div id=”main”>

</div>

This is content inside a divwith an id of main.

Page 7: Completing Your Design with WordPress

THE CODE

Page 8: Completing Your Design with WordPress

CSS BASICSHTML indicates structure.CSS indicates look & feel.

TypographyColorSize

PlacementSpacing

Page 9: Completing Your Design with WordPress

CSS BASICSobject { property: value; property: value;}

#sidebar { color: red } finds an object with an ID of sidebar and makes the text color red

Page 10: Completing Your Design with WordPress

CSS BASICS#sidebar { color: red }

<div id=”sidebar”>

</div>

This is content inside a divwith an id of

sidebar.

<div id=”main”>

</div>

This is content inside a divwith an id of main.

Page 11: Completing Your Design with WordPress

THE CODE

Page 12: Completing Your Design with WordPress
Page 13: Completing Your Design with WordPress
Page 14: Completing Your Design with WordPress

TEMPLATESEach template controls a di!erent part

of the site

page.php controls the look of regular pages

index.php controls the look of of the homepage/unspecified templates

single.php controls the look of of single posts

Page 15: Completing Your Design with WordPress

TEMPLATE HIERARCHY

http://codex.wordpress.org/Template_Hierarchy

Page 16: Completing Your Design with WordPress

TEMPLATE TAGSPlaceholders for dynamic pieces of content.

http://codex.wordpress.org/Template_Tags

<div id=”sidebar”>

</div>

<?php get_sidebar(); ?>

<div id=”main”>

</div>

<?php the_content(); ?>

Page 17: Completing Your Design with WordPress
Page 18: Completing Your Design with WordPress
Page 19: Completing Your Design with WordPress
Page 20: Completing Your Design with WordPress

CHELSEA [email protected]


Recommended