Home » » How to Change Post Title Background Color in Blogger-Blogspot Templates

How to Change Post Title Background Color in Blogger-Blogspot Templates

Written By maura avel on Saturday, November 17, 2012 | 5:05:00 AM

A reader emailed me and asked about changing the post title background color, so here it is. In this tutorial I'll tell you how to change the post title background color in Blogspot templates. As usual, we'll do some editing in the template's HTML code and after that, you'll be able to change the post background color from Blogger Template Designer. So, here are the simple steps to follow:

Note: These instructions are according to the updated Blogger-Blogspot interface.

Steps to Change Post Title Background Color

  1. Open the Template section.
  2. Blogger Updated Dashboard
  3. Click the Edit HTML button.
  4. Blogger Edit HTML Button
  5. A new window will open. You'd have to click the Proceed button to start editing.
  6. Blogger Proceed Button
  7. Find the following code:
    /* Variable definitions
       ====================
    Replace the above code with the following one:
    /* Variable definitions
       ====================
    
       <Group description="Post Title Background Color" selector="h3.post-title">
         <Variable name="post.title.bg.color" description=
    "Title Background Color" type="color" default="#222222" value="#eeeeee"/>
         <Variable name="post.title.bg.hover.color" description=
    "Title Hover Background Color" type="color" default="#222222" value="#000000"/>
       </Group>
  8. Save your template and move on the next step.
  9. Now this step is a little different for each Blogger-Blogspot template. So, please follow the instruction according to the template you're using.

    1. For Simple Blogger-Blogspot template, find the following code:
      h3.post-title, .comments h4 {
        font: $(post.title.font);
        margin: .75em 0 0;
      }
      and replace it with the following one:
      h3.post-title, .comments h4 {
        font: $(post.title.font);
        margin: .75em 0 0;
      }
      
      h3.post-title a, h3.post-title a:visited 
      { background:$(post.title.bg.color); }
      h3.post-title a:hover { background:$(post.title.bg.hover.color); }
    2. For Picture Window Blogger-Blogspot template, find the following code:
      h3.post-title {
        margin: 0;
        font: $(post.title.font);
      }
      and replace it with the following one:
      h3.post-title {
        margin: 0;
        font: $(post.title.font);
      }
      
      h3.post-title a, h3.post-title a:visited 
      { background:$(post.title.bg.color); }
      h3.post-title a:hover { background:$(post.title.bg.hover.color); }
    3. For Awesome Inc & Ethereal Blogger-Blogspot templates, find the following code:
      h3.post-title, h4 {
        font: $(post.title.font);
        color: $(post.title.text.color);
      }
      and replace it with the following one:
      h3.post-title, h4 {
        font: $(post.title.font);
        color: $(post.title.text.color);
      }
      
      h3.post-title a, h3.post-title a:visited 
      { background:$(post.title.bg.color); }
      h3.post-title a:hover { background:$(post.title.bg.hover.color); }
    4. For Watermark Blogger-Blogspot template, find the following code:
      h3.post-title {
        font: $(post.title.font);
        margin: 0;
      }
      and replace it with the following one:
      h3.post-title {
        font: $(post.title.font);
        margin: 0;
      }
      
      h3.post-title a, h3.post-title a:visited 
      { background:$(post.title.bg.color); }
      h3.post-title a:hover { background:$(post.title.bg.hover.color); }
    5. For Travel Blogger-Blogspot template, find the following code:
      h3.post-title {
        margin-top: 20px;
      }
      and replace it with the following one:
      h3.post-title {
        margin-top: 20px;
      }
      
      h3.post-title a, h3.post-title a:visited 
      { background:$(post.title.bg.color); }
      h3.post-title a:hover { background:$(post.title.bg.hover.color); }

  10. Coding is finished. Save your template.

Lets Change the Post Title Background Color in Template Designer

We've done the coding work. Now, you can simply open the Blogger-Blogspot Template Designer and customize the post title background color.
To open Template Designer, click Customize button. In Template Designer, select Advanced from the left menu. You'll see the Post Title Background Color option at the top. Here, you can preview your changes live. Please note that the change in Title Hover Background Color will not appear in Preview window. You can simply apply these changes to your blog and enjoy :)
 sumber :
http://versatility-lite-blogger-template.blogspot.com/
http://feeds2.feedburner.com/bloggerfaqs
http://www.betatemplates.com/2012/05/how-check-blogger-template-name.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+BloggerFaqs+%28Blogger+FAQs%29&utm_content=FeedBurner+user+view

0 comments:

Post a Comment