I have seen many sites use this method and I am one of them too. You can style your alert and note boxes that display in your posts.
The boxes don’t normally have images in and this post will show you how to add an image on the left and have the wording displayed on the right hand side. The two examples below are for the note and alert boxes, but you could create boxes for any other reason. The same would apply.
Note Box
This is an example of the note box that will appear in my posts.
This is the code you would enter in your posts (html code).
This is an example of the alert box that will appear in my posts.
This is the css code you would put in your custom.css file.
.custom .format_text p.note {background: #E3F0F2 url(images/note.png) center no-repeat; border: 1px solid #66CCCC; background-position: 7px 50%; text-align: left; padding: 10px 10px 10px 45px; -moz-border-radius-bottomleft:4px; -moz-border-radius-bottomright:4px; -moz-border-radius-topleft:4px; -moz-border-radius-topright:4px; -webkit-border-top-left-radius:4px; -webkit-border-top-right-radius:4px; -webkit-border-bottom-left-radius:4px; -webkit-border-bottom-right-radius:4px;}
This shows a note image on the left and then what ever wording I have on the right.
Alert Box
This is an example of the alert box that will appear in my posts.
This is the code you would enter in your posts (html code).
This is an example of the alert box that will appear in my posts.
This is the css code you would put in your custom.css file.
.custom .format_text p.alert {background: #ffffa0 url(images/alert.png) center no-repeat; border: 1px solid #E6DB55; background-position: 7px 50%; text-align: left; padding: 10px 10px 10px 45px; -moz-border-radius-bottomleft:4px; -moz-border-radius-bottomright:4px; -moz-border-radius-topleft:4px; -moz-border-radius-topright:4px; -webkit-border-top-left-radius:4px; -webkit-border-top-right-radius:4px; -webkit-border-bottom-left-radius:4px; -webkit-border-bottom-right-radius:4px;}
This shows an alert image on the left and then what ever wording I have on the right.
Creating other boxes:
All you have to do is copy the css styling of the alert box and change the p.alert to p.new_name. Upload another image for that box and change the image name in the css styling.
Final Thought
You could create other boxes that you require just by copying the css styling and giving it another naming convention. I hope this helped a bit and that you have updated your boxes or created new ones.
I am the proud owner of Serradinho Blog and have made this my second home. I'm into blogging, downloads, WordPress, meeting and helping others, etc. Basically the internet in general :) Serradinho Web Services is my own company whereby I offer my services to clients. This ranges from web design, website upgrades, theme customizations, support, premium WordPress plugins and many more .....
View all posts by George Serradinho, there might be other posts that interest you.








{ 25 comments }
Yet another great tutorial George. Thanks soooo much!
.-= steppinout´s last blog ..New Spark Program For Web Developers – Microsoft WebsiteSpark =-.
Hey George,
Thanks for the valuable tips as this notes and warning style looks cool.
There is a plugin named “wp-note” thru which you can do the similar kind of notes or warning in your post. Those who are not familiar with HTML or CSS may go for that plugin.
.-= Sanjeev´s last blog ..Show Your Upcoming Events on your Blog Using Google Calendar =-.
@Sanjeev – thanks for noting the plugin, would help others out
Are we allowed to use your “warning” image (and “note also, for those interested), or do you have them copyrighted?
Thanks for the tutorial, regardless.
.-= Klaus @ TechPatio´s last blog ..Usenet Access Discontinued For Verizon And AT&T – Best Usenet Server Recommendation =-.
@Klaus – you can use them, no problem. I will probably change mine in the coming days
“I will probably change mine in the coming days”
… why am I not surprised, hehe. I don’t think I’ve ever been to serradinho.com more than a few times where it looked the same, you seem to have a new design every week
.-= Klaus @ TechPatio´s last blog ..Usenet Access Discontinued For Verizon And AT&T – Best Usenet Server Recommendation =-.
@Klaus – yes, you are correct. I am trying to find whats best for my blog. Once I have all in place then I will let it be for a few months
Excellent, I have just created another one for me call “news” and it works perfectly
.-= Tinh´s last blog ..Bình Chọn Blog Việt 2009: Vote!!! =-.
@Tinh – I visited your site and I could see the news box. Well done and hope it helped a lot
Hey George… Can you explain one day how do you do the notes you have at the top of the page? The one with the question mark…. Thanks you man!
.-= Guillermo´s last blog ..La Gran Discusión de Halloween: “De qué disfrazo a la nena? De Sirenita o de Zombi?” =-.
@Guillermo – you can read my post about Styling note and alert boxes. I created the box the same way, just a different name used.
Do you reply your comments by email? It’s the post I’m looking at!
Forget about it.
.-= Guillermo´s last blog ..Hora Libre II =-.
Hi George,
Thanks for sharing the styling tips of Alert and note box.
Your custom styling of the comment section is also very attractive.
.-= Surender Sharma´s last blog ..Add Author Profile After Post in Thesis Wordpress Theme =-.
Nice tutorial George. I will try it for my own blog, the design of your blog is very nice. Keep rocking man!
.-= Himanshu´s last blog ..How to deal with duplicate content issue =-.
Nice one George as always. I was thinking that how did you add the Social Bookmarking buttons in left side, will you mind to telling that to me?
Once again thanks for your superb tutorials.
.-= Sahil Kotak´s last blog ..Features Of Wordpress 2.9 =-.
@Sahil – click on the ‘Thesis’ link on the menu tab and then look for a post about floating icons.
This is one good tip, I have used on my blog already! Thanks George
.-= Hesham´s last blog ..Why Famous Bloggers using Thesis Theme for Wordpress? =-.
@Hesham – glad to be of assistance, it’s very easy to implement.
Thank you George just added this little helpful Thesis piece to a few of my blogs, and it took seconds!
.-= Extreme John´s last blog ..Facebook is No Longer Sacred =-.
@Extreme John – yes, this tip is somewhat small and very easy to implement quickly. Glad to be of assistance.
I tried customizing the code and I’m not using Thesis. It didn’t go out so well. Can you remake the code into WordPress supported please?
.-= Adrian Gonzalez´s last blog ..Twitter Finally Translates into Spanish! =-.
@Adrian – it should work with any theme if you put it in your styling file (CSS file). If you can create an example for me to check out, then I can assist you.
Okay thank you! I will personally try to contact you if I need any help. Please keep blogging. Your posts are actually worth something.
If you dont use Thesis theme, you can do like this by installing plugin named Wp-note
.-= Minh´s last blog ..Bằng chứng nhận séc (check) của Adbrite =-.
@Minh – you could do this with any theme, no plugin needed. It’s just CSS styling and then you have to use it in a post.
Comments on this entry are closed.