Wordpress How to: Customize OpenBook theme color scheme
Posted by jbj on Jul 3, 2008 in wordpress • 28 commentsSince the release of the OpenBook, many bloggers asked me how they can modify the color scheme of the theme. Before the release of OpenBook next version, which will probably allow the user to set the colors in Wordpress admin panel, here’s an easy, step by step guide to give your OpenBook theme the look you want, even if you don’t know any web language.
Before we start
For those who don’t know yet the OpenBook theme, here’s a screenshot:

You can download the English version here (this post also contains install instructions) or view a live demo on my personnal weblog.
Let’s go
Now we’re ready to play. The main thing to know with OpenBook color scheme is that I used 5 colors:
- Background: #151515
- Content background: #fff
- header blocks: #222
- Green (used for links): #49AB0D
- Blue (Titles, hover links): #109dd0
Of course, you can manually edit OpenBook files to modify the color values, but having to change each value by hand is in my opinion, very boring.
Happilly, Vi is here to help. For those who doesn’t know, Vi (or Vim) is a powerful modal text editor. If you want to learn more aboout Vim, I recently posted an article about 100 very usefull Vim commands.
If you run any Linux distro or Mac OS X, Vi is already installed on your system. If you’re on Windows, you’ll have to download the GUI version here and install it.
Assuming you downloaded and unziped OpenBook, you now have to navigate inside the openbook22-en directory by using the Terminal, as you can see on the screenshot above:

Now, in order to open style.css in Vi, type the following command in the Terminal:
vi style.css
We’re going to use a little Vi trick to modify each occurence of a pattern by another pattern. For exemple, let’s modify the default green color on links by red.
Type the following line, and then press enter:
:%s/49AB0D/FF0000/g
In order to save and exit the file, type :wq. If you just want to save, without exiting, type :w instead.
If you look at your OpenBook theme now, you’ll see that all links are now red. Pretty easy, isn’t it?
Now you have everything to modify OpenBook to make it exactly fits your needs. Just two things to know:
- style.css is the main stylesheet used on OpenBook, but don’t forget to also edit ie.css (which is a stylesheet only for Internet Explorer) and jd.gallery.css, which is the stylesheet used on the Smooth Gallery.
- The Vi trick I gave you is case-sensitive, so check case before using it.
I wrote this tutorial for my OpenBook theme, because many bloggers asked me how they can change colors easily. But of course, you can apply this tip to any theme you want.
Have fun!







Nice theme. But is a problem.
the css picture isn’t changeing.?
Look: http://www.teknohell.com/resimler/problem.JPG
My website: http://www.teknohell.com
Help me!
(sorry. because my english speak is bad.)
Hi TeknoHell, you should read the tutorial about setting up SmoothGallery here. Hope it will help you
Thanks, jbj.
But, i could not do :(.
i found tutorial link(JonDesign’s SmoothGallery): http://smoothgallery.jondesign.net/showcase/gallery/
There is code my theme/header.php anyway.?
But isnt becoming.
i Loved you openbook lot. i want to set.
Can you help me?
(sorry. because my english speak is bad.)
You have to read the “Configuring SmoothGallery” on the link I gave you, not JohnDesign tutorial. (which is for generic SMoothGallery, not SmoothGallery embeded in Wordpress)
Hop it will help.
Greetings
jbj,
Me, ready header.php send?
Strange,
header.php edit? i arrenged hader.php?
pff not understand.
Ops!
OpenBook Options > Featured categorie ID: 18
id 18 is: http://www.teknohell.com/?cat=18
home page not changeing.?
http://www.teknohell.com
Ops!
OpenBook Options > Featured categorie ID: 18
id 18 is: http://www.teknohell.com/?cat=18
home page not changeing.?
ps: my 6. post: Your comment is awaiting moderation. im re-send
In Openbook option, you have to report the ID of your “featured” category (18). Then, add some posts to the featured category and you’ll see theses posts rotating on homepage.
i did.
didn’t become
ScreenShots:
http://www.teknohell.com/resimler/noting1.JPG
and noting2.JPG
Isaw in the source that you put 3 posts in your featured category…but you didn’t assign any image, this is the reason why no image display
You got to create - for each post in featured category - a custom field name featuredimg and assign it the wanted image url as a value.
(There’s more info about that in the tutorial I shwon you)
if i give the password do you look at?
My mail / messenger:
Network@hell-world.org
jbj, Can i help me ?
Hey, first of it all, I can’t answer everyone in a five minute delay. So, please be patient
Secondly, I can go to your wordpress install and set an image, (But working on a blog is paid support) but each time you’ll want to put a post in the gallery, you’ll have to create a custom field and assign it an image.
That’s easy, believe me. Try to read this article, it should help you.
Fot the helps, thakns.
good bye.. good Luck. jbj.
Great WP theme. I’m having just a slight problem with the SmoothGallery, particularly the category IDs. For the left and right category columns, do I input an #ID or the name of the category? I tried entering my categories (ie. Media, News), but it ends up just posting every recent entry. I also have the same problem for the Featured catagory ID on SmoothGallery. As I entered the ID of it (”featured”), it basically shows all the posts in every category. Check my site for a better understanding. I’m looking forward to your help. Thanks!
*Update* I actually figured out the whole dilemma by setting the permalinks to ID# (how dumb of me!). Sorry for the non-sense!
Glad you found out the solution to your problem !
Enjoy OpenBook
hello jbj,
i totally love love love your theme!!!
actually i’m already using it, i tweaked it as much as i could, hope you like it\
i tried to make it as different as i could, but there’s a limit :))
there is one thing i’d like to know and i really need your help on that:
is there a way to ad an image (a vignette-like image) to each excerpt listed in the monthly archive?
i’m not very good at php, i think i need the line of code that pulls the image from each post and attaches it to the post excerpt in archive.
thanks and hope i’ve been coherent enough :))
Hi godefroy, glad you like OpenBook and glad to see that you customized it very well

For now, Openbook doesn’t allow you to put an image in the monthly archives. Thought, I can do it directly in your blog, as paid support, if you want
thank you jbj,
it’s really not a must, it was just an idea to further beautify the archives page, but you’ve already done an amazing job; the archives look great comparing to the majority of wordpress themes
congrats on your hard work!
Glad you like it
You had a good idea btw, so maybe i’ll make it possible in a future version of the theme!
hi jbj…i am blog newbie….so bit unfamiliar with the terms of all those code
i have few probles…
1. How can divide the posting into few categories under smooth galery like yours….mine is all under one heading -blogging…do you have any idea?
2. When i go to each particular page of my posting…..at the side bar there is more than 1 column of category under the title IN THIS CATEGORIES….i think maybe the posting under few dif cate…..so how can I change the title as there will be no three same title anymore….
3. How to take out the Categories and Archives from the side bar…. i think it has alrady embedded in the code right? which part of code that i have to delete?
4. Do u have any tips which how can i make bar at the bottom at my page as the sidebar is too long which make my blog looks lengthy….Just like below of this page
By the way….thank you so much for your wonderful theme and for your assistance…..
If you dont mind, can you give tips or comment about my blog …..I think there is still space for me to improve the blog….thank you
I need other help…iI hope u dont mind…
Why i cant update my code…this code will appear -You need to make this file writable before you can save your changes. See the Codex for more information. How to change the font as your theme fonts quite small for me….tq for ur previous assistance.Really helpful (n_n)
Dude… This is exactly what I am looking for. A good professional looking theme which is fun and needs absolutely no manual editing! This is the best that I have seen after looking at a few hundred themes on the net. Now I can forget about the design and focus on the content. Thanks a lot dude!!! I have it up and running on my blog.
Just one problem… The “Featured” Category is showing up in the top menu! This should not happen right?
How do I fix this?
Da Lash
Thank you, Da Lash. You need to edit header.php and add the exclude parameter to the wp_list_categries() function.
Hi JBJ..
First of all, I’d like to say this is a really great theme you’ve given us bloggers! What a relief to find a cool theme like this without having to manually edit all those confusing code. You’re a blessing
I’d like your help on a small problem, though. I’m having trouble with my header image. I downloaded the English version of Openbook22, and whenever I try to edit the header image and color in my WP admin panel, it doesn’t show up in my home page.
What’s more, all the categories I set up on the Openbook Options keep on disappearing. I’d really be grateful for some help. Thanks!
Hey Mawe, thanks for your compliments, I really appreciate it =)
Btw the “header image and color” isn’t supported in openbook. I think you have this option because you have the default WP theme installed.
To modify OpenBook logo, just use the related textfield in the “OpenBook Options” tab.
To change the background color, just use this tutorial
For your categories, are you sure to define categories IDs, and not categories names? (It must look like this: 1,5,7)