FREEBIE: Add Web 2.0 “Boxes” To Your WordPress Theme
Author: Jim | Filed under: Blogging Tips, Blogging Tricks, Web Development
I was recently talking with a few buddies about the Web 2.0 “wave” of themes hitting the blogosphere, and we were chatting about the types of new tricks that can be done with CSS to stylize your blog. To me, what is considered “Web 2.0″ are themes and colors that are light, simple and easy-to read. I’d say that “fresh” is the new “professional“… and making your blog “fresh” isn’t as hard as it seems.
One really neat trick that I will now share with you involves adding simple “boxes” to your normal post structure, allowing you to add a beautiful flare to an otherwise ordinary blog post. As a note: I want to attribute this trick 100% to the designers at WooThemes . WooThemes is one of the pioneers of these great looking templates, so I am borrowing a piece of their code that a buddy and I were looking at to encourage you to change your website to fit a more natural “Web 2.0” feel.
Let’s Look at Some Examples
The first is an “alert“-type box, that could be used to warn users of some kind of exception to a rule or a potential downside/side-effect to a strategy:
WARNING! The Nuclear Reactor Is Set To Explode!
Let’s offer our users a free download with our “download“-type style:
Check out our FREE eBook: DOWNLOAD HERE
Why not give our users the green light with the “tick“-type box:
“It’s A Green Light Go” – Gorilla Zoe
Add some additional information or an expert tip with the “info“-type styling:
FUN FACT: The collecting of beer coasters is called “tegestology.”
Adding a little note here or there is convenient when you have a “note“-type box:
Grocery List: Milk, Eggs, Baking Soda, Chocolate Chips, Flour, Sugar
Awesome Styles, How Do I Use Them On My Blog?
I’ve compiled the coding you need to add this to your WordPress style, and the great thing about these is that they are really 100% plug-and-play! If you know your way around, you can have these styles working in under a minute.
STEP 1: Download the five different icons that you will need to designate a different style when you enter a new type of “box.”
Grab the icon series from Jimvesting.com: DOWNLOAD ICON PACK
STEP 2: Upload the image files directly to the “images” folder within your theme (will most likely be located here: “/ROOT/wp-content/themes/THEMENAME/images/“) via an FTP client or web-based file uploader.
STEP 3: Add the following code anywhere in your CSS file (by default, this will be “style.css”) by editing your theme in WordPress (“Appearance” –> “Editor”)
/* CUSTOM IN-POST BOXES */ p.alert, p.download, p.info, p.note, p.tick { margin:10px 0 20px 0; padding:9px 10px 9px 50px; } p.alert { border-top:1px solid #f0baa2; border-bottom:1px solid #f0baa2; background:#ffd9c8 url(images/ico-alert.png) no-repeat 20px 13px; } p.download { border-top:1px solid #d4ebaf; border-bottom:1px solid #d4ebaf; background:#edfcd5 url(images/ico-download.png) no-repeat 20px 13px; } p.tick { border-top:1px solid #d4ebaf; border-bottom:1px solid #d4ebaf; background:#edfcd5 url(images/ico-tick.png) no-repeat 20px 13px; } p.info { border-top:1px solid #ccc; border-bottom:1px solid #ccc; background:#eee url(images/ico-info.png) no-repeat 20px 13px; } p.note { border-top:1px solid #efe3ae; border-bottom:1px solid #efe3ae; background:#fef6d2 url(images/ico-note.png) no-repeat 20px 13px; }
STEP FOUR: Call the codes inside your actual posts by replacing any paragraph code with a new “class.” This can be done by going to an HTML (the source code) view of your post, and changing <p> to <p class=”____”> where you want the box to appear.
CODES:
To call the alert box: <p class=”alert”>Text Here</p>
To call the download box: <p class=”note”>Text Here</p>
To call the tick box: <p class=”tick”>Text Here</p>
To call the info box: <p class=”info”>Text Here</p>
To call the note box: <p class=”note”>Text Here</p>
Step 5: Clear your blog’s cache (if applicable) to make sure the changes take place. Save your post and enjoy!
I hope that you enjoyed this quick tutorial. I know that a lot of people have asked about how to do this on other websites, and since I figured out how to make it happen I figured I’d go outside of my typical content and get you some blog improvements. Everyone can use a little Web 2.0, and if you want a theme for a great price that is totally fresh… check out WooThemes for an awesome deal.
-Jimvesting Dot Com
UPDATE: As recommended by Fas of GreatestReviews.net, “WP Notes” has a similar effect on your posts… plus it is a plugin so it is easier to install. CSS is definitely the smart call, but plugins sure are easy to use!
Related Posts
- Win FREE Web Hosting with HostGator!!
- How The Internet Time Machine can help your Business
- How to Gain Twitter Followers Like CRAZY, for FREE! – Don't Fall for Paid Services!
- IMWithJoe.com Spoof – Creating Your Own Wealth and Making It BIG In Life!
- UPCOMING FREEBIE! – Earn $75-$200 Cash Over and Over, with ZERO RISK


I’m glad you put up this tutorial because I’ve been trying to figure out how to do this for some time. Appreciate it, Jim
Twitter: @motorbeam
May 16, 2010 at 3:56 pm #
Looks cute. There is a plugin called wp-notes which does the same.
fas´s last blog ..How Secure Is Your Home?
Twitter: @jimvesting
May 16, 2010 at 6:32 pm #
Thanks for that tip Fas, I added a link to your blog up in the post for your recommendation!
Twitter: @motorbeam
May 17, 2010 at 9:20 am #
Thanks a ton Jim. That was very sweet of you
Twitter: @motorbeam
May 17, 2010 at 9:21 am #
BTW here is the download link to the plugin http://wordpress.org/extend/plugins/wp-note/
Twitter: @AgentDeepak
May 17, 2010 at 4:37 pm #
You are right Fas. WP-Note is really good plug-in. I also advise using it.
Agent Deepak | Blogging, Marketing & Success´s last blog ..Blogging is SIMPLE but was NEVER Easy
a great source for bloggers. thank you jim.
pigeon forge´s last blog ..Pigeon Forge Vacation Rentals Offers the Best
Nice trick, this will really improve the ways that your blog looks like.
I will try it. Thanks for this info.
Good post, I prefer a clear design attach. More convenient for users
Fashion´s last blog ..What do you know about fashion sketches
Twitter: @ZanderChance
May 17, 2010 at 9:39 am #
Yeah, WP Designer used to include these features in his old themes.. I still use one of his themes on my MMA site, but my editor never remembers how to use the HTML to make those boxes show up.
But you can see how he set his boxes up here:
http://www.wpdesigner.com/demo/index.php?preview=Wpdesigner8
Zander Chance´s last blog ..Why You Should Get The Socrates Theme
Twitter: @DennisEdell
May 17, 2010 at 12:10 pm #
Your timing couldn’t be better if you tried, thanks! As you know, I’m building.
The plugin would be great for ME, lol, but this coding will be sent to my designer ASAP.
Dennis Edell | Direct Sales Marketing´s last blog ..Oops I Lied-HAHA
Twitter: @DennisEdell
May 17, 2010 at 12:11 pm #
No re-tweet button?
Dennis Edell | Direct Sales Marketing´s last blog ..Oops I Lied-HAHA
Twitter: @DennisEdell
May 17, 2010 at 12:13 pm #
never mind, found it. This is why I dislike the sexy.
Dennis Edell | Direct Sales Marketing´s last blog ..Updated: Do You USE Aweber? I Want Your Affiliate Link. Part 2
Twitter: @jimvesting
May 17, 2010 at 1:50 pm #
Hmm… could be cause to get this blog a social media revamp. Thanks for the feedback
Twitter: @oestsetnoc9
May 19, 2010 at 3:30 am #
haha I’ve been looking for this tweak! I’m glad I found it here. Thanks for sharing this tip!
I think its a great idea Jim. I have personally always wanted to add the social boxes to my blog.
- Robert