Showing posts with label Date. Show all posts
Showing posts with label Date. Show all posts

Style Blogspot blogger date header


This can be a really cool addition to your blog which can be easily customized to suit your layout and design. What we are going to do in this tutorial is to change the Blogger date header background color with some simple CSS adjustments that will make the date header float on the left side of your post and be partially out of the structure, like a banner with a colorful appearance.

stylish blogger date header

Customize the Date Header of a Blogger Blog

Step 1. Log in your Blogger account and go to Template > Edit HTML


Step 2.Click anywhere inside the code area and search (CTRL + F) for the following code:
.date-header span
Below this code you should see some lines like these:
.date-header span {
  background-color: $(date.header.background.color);
  color: $(date.header.color);
  padding: $(date.header.padding);
  letter-spacing: $(date.header.letterspacing);
  margin: $(date.header.margin);
}

date header, blogger

Step 3. You will need to replace the code above with this one:
.date-header {
margin: 0px 0px -50px -190px;
}
.date-header span {
background-color: #DDEDAA;
color: #444;
padding: 16px;
border-radius: 70%;
border: 3px solid #bada55;
}
.date-header:before {
background: none repeat scroll 0 0 #FCFCFC;
border: 10px solid #FFBD54;
border-radius: 100%;
bottom: -50px;
content: "";
display: block;
height: 30px;
position: absolute;
width: 30px;
z-index: 10;
margin-left: 140px;
}
.date-header:after {
background: none repeat scroll 0 0 #F9F9F9;
border: 7px solid #bada55;
border-radius: 100%;
bottom: -17px;
content: "";
display: block;
height: 15px;
position: absolute;
width: 15px;
z-index: 10;
margin-left: 166px;
}

How to Customize the Date Header

To change the:
- background color, replace #DDEDAA with the hex code of your color
- font color, replace #444
- border color of the bigger circle below the date header, replace #FFBD54
- border color of the green circle, replace #bada55
- distance between date and post, change the -190px value from margin-left

Step 4. Click the "Save template" button to save the changes. That's it!

Now you've applied a new style to the date header of your Blogger posts. Please note that codes vary from template to template and if you have a custom template, there might be a different CSS selector for the date header.

Display post author, date, labels and comments with icons below post titles


In this tutorial, you will see how to add more info in the Blogger posts like blog author's name, a time stamp for published posts, labels and comment count links. The comment links will display the 'Be the first to comment!' text in posts with no comments and once we get a comment, it will show '1 comment so far'. On the left side, it will show the author's name, a clock icon with date when posts have been published and finally, the post labels.

How to Add Author, Date, Labels and Comment Bubbles to Blogger

Step 1. From the Blogger Dashboard > go to "Template" and press the "Edit HTML" button



Step 2. Click inside the code area and press the CTRL + F keys to open the blogger' search box



Step 3. Type or paste the below code inside the search box and hit Enter to find it:
<div class='post-header-line-1'>
Note: If you can't find the code above, look for this one:
<div class='post-header'>
Step 4. After this code add the following code:
<div style="margin: 5px 0; border-bottom: 1px solid #F2F2F2;padding: 5px;"><font style='background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8h3945DnYb6pBthINju0X3jFggwuxlB0F4GWLD5DyI3HRVKcvkLB10ADfxu0STpG3ONRlGlaw3WZ70m4DrRRojCegG1l6-AC5FOtIiDI6yHMvpsrqhDCGr13sSnKF9DBQWs34AQWpqfLP/s1600/author.png) no-repeat scroll top left;padding-left:25px;font-size:11px;'><data:post.author/></font> | <font style='background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW-3pUWXPUTtVvYFTFTvvWjeHWMK-YGEbmaFvSAAa76lpE3VQ9MIm1TEalB_sQaSdBZEer__6ZOqcssLA3uq1porPNV48SeXKfOBK5phF9vShftnsxVmAemu_IwKlMOHxit34HOSQaqt41/s1600/clock.png) no-repeat scroll top left;padding-left:25px;font-size:11px;'><data:post.timestamp/></font> | <font style='background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD3tLfHH4PDtPRUEg8_Z9zPj1vDm5G9Hjh8pZwEIxwYRxc48lq9iemIktLZvIxjeiwY4BBjuKxrxk4yGzvEHh7UGgHnS3laehP9kWBKeRxWQBJKSlX5rDoASnt_uvDQw11xi9_G79ToJVw/s1600/tag.png) no-repeat scroll top left;padding-left:25px;font-size:11px;'><b:if cond='data:post.labels'>
<b:loop values='data:post.labels' var='label'>
<a expr:href='data:label.url + &quot;?max-results=8&quot;' rel='tag'><data:label.name/></a>
<b:if cond='data:label.isLast != &quot;true&quot;'>|</b:if>
</b:loop>
</b:if></font>
    <span class='post-comment-link' style='Float:right;'>
        <b:if cond='data:blog.pageType != &quot;item&quot;'>
          <b:if cond='data:post.allowComments'>
            <a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' style='background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKeF3FQjupEZCc3QgenG1U5B9MwGlia9xro1utkbn_w-jW0M1CXT-ktkQwpP5X7MhzBVp_xgMwHf0EO8Kb0UGUpb2h1OHkdY_XBZvkvqyPyvlSeuxxLYBQ90s4JoGsfqx6R4vU1PgAor5S/s1600/comment.png) no-repeat;padding-left:20px;font-size:11px;'><b:if cond='data:post.numComments == 0'>Be the first to comment!<b:else/> <b:if cond='data:post.numComments == 1'><data:post.numComments/> Comment so far<b:else/><data:post.numComments/> Comments so far</b:if> </b:if></a>
          </b:if>
        </b:if>
    </span></div>

How to customize:

To change the icons, replace the URLs in blue from above with the image URLs:
- First one is the icon for the Author
- Second one is the Clock icon
- The 3rd one is the icon near the Labels
- And the last one is for the comment bubble

Related: How to Add Comment Bubbles to Blogger posts titles

Step 5. Click the "Save template" button and you're done!

Recent Posts

Unordered List

Text Widget

Blog Archive

Powered by Blogger.

Recent Comments