Creating Your Own WordPress Theme Part 4
By DarrylIn Creating Your Own WordPress Theme Part 3 we managed to setup the basic layout. We’ll go ahead and pick up where we left off and see what we can get accomplished this evening.
Since I wasn’t happy with the link colors, I played around with various color combos for a couple of hours until I found something that I think looks good and is a little different. So here’s the changed css…
body, html {
margin: 0;
padding: 0;
color: #000;
background: #fff;
font: 10pt verdana, arial, sans-serif;
}
a, a:link, a:visited, a:active {
color: #b00;
text-decoration: none;
}
a:hover {
color: #fff;
background: #555;
text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
}
h1 {
font-size: 12pt;
}
h2, h3 {
font-size: 11pt;
}
h4, h5, h6 {
font-size: 10pt;
}
blockquote {
margin: 10px 20px;
padding: 10px;
background: #eee;
border: 1px solid #ccc;
}
.alignleft {
float: left;
margin: 0;
padding: 0;
}
.alignright {
float: right;
margin: 0;
padding: 0;
}
.left {
float: left;
margin: 0 10px 5px 0;
padding: 0;
}
.right {
float: right;
margin: 0 0 5px 10px;
padding: 0;
}
p {
line-height: 18px;
}
small {
font-size: 9pt;
}
code {
font-family: "Courier New", courier, verdana, arial, sans-serif;
}
/* layout */
#page {
width: 960px;
margin: 0 auto;
padding: 0;
}
/* header */
#header {
width: 960px;
height: 80px;
margin: 0;
padding: 0;
}
#header-l {
float: left;
width: 400px;
margin: 0;
padding: 0;
}
#header-r {
float: right;
width: 560px;
margin: 0;
padding: 0;
}
#header a img {
border: none;
text-decoration: none;
}
.title {
font: 20pt bold arial, verdana, sans-serif;
margin: 15px 0 0 10px;
padding: 0;
}
.description {
font: 11pt arial, verdana, sans-serif;
margin: 0 0 0 83px;
padding: 0;
}
.title a, .title a:visited, .title a:link, .title a:active, .title a:hover {
color: #000;
text-decoration: none;
background: #fff;
}
#search {
margin: 30px 10px 0 0 ;
padding: 0;
text-align: right;
}
#searchform #s {
width: 250px;
}
#searchform #searchsubmit {
color: #fff;
background: #555;
}
#searchform input {
border: 1px outset #b00;
color: #b00;
}
/* navigation */
#navbar {
display: block;
width: 960px;
margin: 0 auto;
height: 30px;
font-family: arial, verdana, sans-serif;
font-weight: bold;
/* border-top: 1px solid #000;
border-bottom: 1px solid #000; */
background: #000 url(images/navbar.gif);
}
#navbar ul {
margin: 0;
padding: 0 0 0 10px;
float: left;
}
#navbar li {
display: inline;
}
#navbar ul li.current_page_item a {
color: #ccc;
height: 24px;
border: 0px;
padding: 6px 10px 0 10px;
}
#navbar ul li.current_page_item a:hover {
color: #fff;
text-decoration: none;
background: #b00 url(images/navbar-hover.gif) repeat-x;
}
#navbar a {
color: #ccc;
float: left;
margin: 0;
height: 24px;
padding: 6px 10px 0 10px;
}
#navbar a:hover {
color: #fff;
text-decoration: none;
background: #b00 url(images/navbar-hover.gif) repeat-x;
}
/* content */
#content {
float: left;
width: 560px;
margin: 10px 0 0 10px;
padding: 0;
}
.post {
margin: 0 0 30px 0;
padding: 0 0 20px 0;
border-bottom: 1px dashed #000;
}
/* sidebar */
#sidebar {
float: right;
width: 360px;
margin: 10px 10px 0 0;
padding: 0;
}
/* footer */
#footer {
clear: both;
text-align: center;
}
/* single */
.navigation {
margin: 0;
padding: 0 0 50px 0;
}
As you can see, I’ve changed few things, including adding 2 graphics for the navbar. Almost all of the changes have to do with color, although there are changes for the single page navigation, alignleft, alignright, and search.
So not a whole lot done this evening, but we’ll make better progress tomorrow. Until then…
Tags: create your own WordPress theme, themes, wordpress, WordPress Themes

nice tutorials here man, I’m consider switching my site over to WP, but didn’t want to use a BS theme, want to covert my own over.
Thanks! It’s really easy to create your own theme once you get the hang of it. Good Luck!
Really nice theme, thanks…
Thank you, this is what I wanted!! i would be glad if u visit my Artikelverzeichnis but u need understood german
Fantastic post!
But 4 me it’s more simple download an already made template xD
thanx
isaacisback
O.O
Thanks for sharing your tips. I have been a newbie to css all these while. thanks
Thanks man Quite Easy man! I will follow your steps. I need one template for my blog.
Nice Site. I am new here but will be visiting more often as you have done a good job.
Thanks
Thanks for sharing this tutorial. It’s quite interesting and helpful in creating wordpress.
Thank you sir!! this looks like a bit of work.. im heading down to the free wordpress theme section.. lol
Thanks! It’s really easy to create your own theme once you get the hang of it. Good Luck!
@Jensen, you are better of learning this and creating your own theme. its way better than those free ones bro.
Nice theme! Thanks brother!
hey, love the blog – i will try and keep up with it!! please keep more coming
I wish I could start a blog but I don’t have much time
Thanks, nick
This is my second time here and I appreciate all the information.I will check the themes and the plugins too. Thanx
I do make an effort to learn this CSS stuff. But when I get caught up in the curly brackets and forward slashes, I run to free theme sites.
So great tutorial..
I was searching that for Hours..
Now i will Digg Your Submission..!!
Thanks for writing this series, I am just getting in WP and this is incredibly helpful.
This is a great series of posts for creating a theme. Something that is definitely gong to help me out lots!
Thank’s for your theme it’s so nice. Thank you so much
You’ve created a good post!
Nice job! I like it a lot!
Thanks for your guidance, its pretty easy to creat your own theme…
thanks…hope wordpress will give other features for free….
Great codes and it is also very easy to understand.. i could easily modify the font and colours. Thanks a lot.
hi,
txs 4 sharing nice article. i really appreciate this kind innovative ideas. i like to implement innovative things.
thanks for the new blog and code, it should help and I will spread the word. its nice you can change the colors
Great tutorial..
Thanks a lot for sharing..
No problem. Have fun!
thanks for the article Granit
Great insights. Thanks for coding…
In my opinion there are two ways to get a SEO optimized and nice-looking WordPress theme: 1) buy one 2)design yourself. While creating a layout is somewhat doable, SEO optimization is a completely different thing to me. There are LOTS of factors to consider, from tags and titles to lighweight code for faster loading, besides all kinds of compatibility requirements for plugins, browsers etc.
Thanks for this usefull information. I hope to read more in future.
Thaks for the tutorial, and the theme is espicially sweet!
Although, I think the red one on my site is the best I’ve ever seen .:mrgreen:
Ive been messing with themes forever. A custom theme would be so much better.
Thanks for the helpful info!
CSS, sigh
Once you get the hang of it it’s pretty fun really!
I opt for the “buy one” option. I have done a ton of reading and working and I think that the ones I’ve purchased are actually better than the ones I’ve invested over a hundred hours into. Maybe I’m just not “talented”, but that’s just me…. and the tutorial in good.
Good information..
Thanks for sharing..
Nice of you to share out the CSS file coding, was trying to modify mine, but have some problem always after modifying it. But your guide had give me some idea of doing it right this time.
Thanks.
Nice post, this will surely help me.
CSS is fun once you get the hang of it. Writing from scratch is tough, but customizing is easy!
Yes it is easy to customize. It’s how I first got started.
After doing that for awhile, I learned how to write from scratch. It’s been fun learning it, and even though I don’t know everything about it, I know enough to make the sites I build look the way I envision them.
Besides, there’s always Google when I can’t figure out how to do something.
nice theme.
Great tutorial. Will create my first wordpress theme soon.
good post. waiting 4 the next
Nice informative post, you just make my job a lot easier.
Thanks for you tutorial. It really help a lot .
Poppers
Thanks for sharing your information. Great theme….
Thanks for your good information and also i like to know about this more details so if you know something related WordPress Theme continue this type of posting.Thanks for sharing your tips.