6 Easy Ways To Customize Heading Style In Blogger & Wordpress – Customize Heading Tags

Change-heading-style You must have observed the style of headings in my posts, it’s usually surrounded by two sky blue borders and have a text colour in sky blue. Styling the Headings gives an interesting and attractive look to your blog content. Readers find it more easy to locate a certain portion of your topic with the help of properly customized Headings. Further it will increase your search engine ranking because heading tags produces a really good impression on search engine robots. This tutorial is mainly for Blogspot users but some interesting styling can surely be added to Wordpress. Lets Start!


Customizing Heading Style Using Simple CSS – For Blogspot Users

I have six different Heading styles for you guys. Have a look at the video below,
Now to add one of the above Heading Style to your blogs, do the following,
  1. Go To Blogger > Layout > Edit HTML
  2. Search For ]]></b:skin>                  (Tip:- Press Ctrl + F )
  3. Just above ]]></b:skin> paste one of the codes below,
  • For Heading Style with a bottom border, use this code,
.post h3{
color:#0080ff;
border-bottom:1px solid #289728;
font-size: 12pt;
padding:2px;
}
  • For Heading Style with a border at top and bottom, use this code,
.post h3{
color:#0080ff;
border-top:1px solid #289728;
border-bottom:1px solid #289728;
font-size: 12pt;
padding:3px;
}
  • For Heading Style surrounded by borders, use this code,
.post h3{
color:#0080ff;
border:1px solid #289728;
font-size: 12pt;
padding:2px;
}
  • For Heading Style with Hover Effect, use this code,
.post h3{
color:#0080ff;
border-top:1px dotted #289728;
border-bottom:1px dotted #289728;
font-size: 12pt;
}

.post h4:hover{
border-top:1px dotted #0080ff;
border-bottom:1px dotted #0080ff;
background-color: #289728;
color:#fff;
}
  • For Heading Style surrounded by a Box, use this code,
.post h3 {
border-bottom: 1px solid #289728;
color:#0080ff;
font-size:12pt;
}
.post h3 span {
position: relative;
left: -0.3em;
bottom: -0.6em;
padding: 1px 0.5em;
margin: 0;
border: 1px solid #289728;
background-color: #fff;
}
  • For Heading Style with a side Image & Hover Effect, use this code,
.post h3 {
background: #fff url(URL OF Side Image) top left repeat-y;
font-size: 12pt; 
color: #0090ff;
padding:28px 0 0 44px ;
}
.post h3:hover {
color: #289728;
}
Make Sure you replace URL OF Side Image with Image Link of your preferred side image. This image can be 45px by 45px in size or even smaller. I have used the following image in the video above –> tnt
      4.     Now Finally save your template.

Customization and Implementation Of The CSS Code For Headings

Customization:- 
All the CSS codes above use simple properties which are described below,
1.   For Changing border width, style and colour edit codes like this one,
border:1px solid #0080ff
Here 1px refers to border thickness/width and solid refers to border style and the six digit number refers to border colour. You can change border style from solid to dotted or dashed. I like border style to be dotted because it gives a light appearance.
You can use our CSS Colour Chart for getting the six digit number for your desired colour
2.    For Changing Font Size, edit codes like this one,
font-size:12pt 
If you want the text size to increase or decrease than respectively increase or decrease this value 12pt
3.    To Change Font Colour, edit similar codes like this one,
color:#0080ff
You can use our CSS Colour Chart for getting the six digit number for your desired colour
Implementation:-
Now Whenever you write a heading in your post inside blogger editor, simply add the following pieces of codes next to your heading,
<h4> Your Heading Goes Here </h4>
See a screen shot below,
Update: In the image below I have mistakenly written

,

tag please convert it to

and

respectively. 

example-image-for-heading-style
This can be done both in compose or HTML mode.
For Heading Style Surrounded By a Box you will need to add slightly different code as shown below,
<h4><span> Your Heading Goes Here </span></h4>
We only need to add an extra span tag (i.e:- <span>) for the box to appear.
That’s All!
Note:- Changes Will Not Appear inside Blogger Editor or on previewing. You will only see a bolded black text inside blogger editor. The styling will take effect only when the post is published.

Customizing Heading Style Using Simple CSS – For Wordpress Users

To be honest I really hate wordpress because it has nothing interesting for new web designers like me. It uses complex php script that few understands and also has a complex CSS editing option that has never went through my throat. If you are an expert wordpress user then you can use the blogspot method above to style headings in your wordpress template but if you find it difficult to edit wordpress style sheet like me then you can adopt a simple way as described below.
We can only apply three out of six Heading style methods to wordpress which are,
  1. Heading Style with a bottom border
  2. Heading Style with a bottom border and top border
  3. Heading Style surrounded by borders
To apply any of the heading style above, do this in your Wordpress Editor,
  1. In the visual mode of your Wordpress editor first write a heading
  2. Now switch to the HTML mode and enclose your heading with the following code,
  • For Heading style with a bottom border, use this code,
<h3><div style="color:#0080ff; border-bottom:1px solid #289728;
font-size: 12pt; padding:2px;">Your Heading Goes Here</div></h3>
  • For Heading style with a bottom border and top, use this code,
<h3><div style="color:#0080ff; border-top:1px solid #289728;
border-bottom:1px solid #289728; font-size: 12pt; padding:3px;">Your Heading Goes Here</div></h3>
  • For Heading style surrounded by borders, use this code,
<h3><div style="color:#0080ff; border:1px solid #289728; font-size: 12pt; padding:2px;">Your Heading Goes Here</div></h3>
The green text is where your heading must lie and the bolded black text is the code that should surround your heading. Now once you have added the codes correctly, simply switch to the visual mode and you will see the heading style in action! See some screen shots below for heading style surrounded by borders,
First enclose your heading with html codes above in the html mode,
Update: In the image below I have mistakenly written

,

tag please convert it to

and

respectively.  


wordpress-editor---html-mod

Then press the visual button to see the effect live!
wordpress-editor--visual-mo
To customize the styles read the customization guide for blogspot users
Hope it was clear :>>

If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »

13 comments

PLEASE NOTE:
We have Zero Tolerance to Spam. Chessy Comments and Comments with 'Links' will be deleted immediately upon our review.
  1. now that was a pro tut mohammad. Thanks a lot. I am CSS student and am really impressed with the easy CSS properties above.

    ReplyDelete
  2. @jacob

    I am honored with your visit. Thanks dear!

    ReplyDelete
  3. thanks mohammad for including wordpress. Thumbs up!

    ReplyDelete
  4. Worked a charm. Thanks!

    ReplyDelete
  5. How did you make this comment box with gray border and mouse effects with a query SPAM=TRASH

    i would like to keep for my blogger blog.can you help me

    mail : ananth2ananth@gmail.com

    ReplyDelete
  6. Good post. Will be helpful for all bloggers who would love to increase their traffic. Keep up the good work.

    ReplyDelete
  7. How do you place this in your WLW program?

    ReplyDelete
  8. assalamu'alaikum Mohammad, Can I style post H2 on blog?
    I want H2 on my blog with bottom Border, i try this tutorial, but dont work on my templates.. thanks for reply.

    I change into

    .post h2{
    bla bla bla...

    saveblogger.com

    ReplyDelete
  9. its not working in my blog. pls help..

    ReplyDelete
  10. Mohammad Mustafa Ahmedzai I am unable to use this and block quotes customization :(

    ReplyDelete
  11. It looks to me like all your custom CSS is for h3 and not for h4. I suppose this is the reason it is not working for so many users. I believe the solution should be to change either the CSS h3 entries to h4, or use h3 and /h3 tags to bracket the heading in the post.

    ReplyDelete
  12. Dear Sir, You have take a mistake, here it is ((Go To Blogger > Layout > Edit HTML )) your no 1 tag.

    ReplyDelete