don't like the blogger bar across the top of my Web site because it didn’t really go with my template and I already had a Google search bar integrated. So I went on a mission to remove it and de-bloggerify my blog. I searched far and wide and for some reason kept hitting a dead end. It turns out that the code used to change the old blogger templates no longer works! So after tracking down the CSS changes here is how I did it:
Showing posts with label Blogger. Show all posts
Showing posts with label Blogger. Show all posts
Saturday, August 13, 2011
Remove navbar in Blogger
don't like the blogger bar across the top of my Web site because it didn’t really go with my template and I already had a Google search bar integrated. So I went on a mission to remove it and de-bloggerify my blog. I searched far and wide and for some reason kept hitting a dead end. It turns out that the code used to change the old blogger templates no longer works! So after tracking down the CSS changes here is how I did it:
Colors And Hover Effect To Author's Comments in Blogger.
You have seen several posts about How to use a different background color and text color on comments by the blogs author?This is a great way for readers to quickly find comments you make on your blogsuch as replies or extra information.That code has since become somewhat outdated so i have been working on a new more advanced code.
You may have noticed I have being trying out the code on the comments this blog.As with before the authors comments will have a different background color and text color but I have added a few more features.The background color will also have rounded corners and thecolors will change when users hover their cursor over the comment. You can see below comments have a different background and font color.There are some Author’s comments having a black backgroundwith White text and some comments have hover effect so with the cursor over the second comment the color changes to a Grey background with White text.
Step 5. OK you have located the section of code, we now add two snippets of code to it.You can see the two snippets and were i have added them below in red.
<dd>
<b:if cond='data:comment.isDeleted'>
<span><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>
<dd>
<span>
<a expr:href='"#comment-" + data:comment.id'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
</b:loop>
</dl>
Step 6. If you placed the code in the right place you can save your template and check it out.
Add Colored Author Comments To Your Blog:
Step 1. In your Blogger dashboard click > Design > Edit Html > Tick The Expand Widget Templates Box:
Step 2. Find the following piece of code ]]></b:skin> in your blogs Html : (Click Ctrl and F for a search bar to help find the code )
Step 3. Copy and Paste the following code directly Above / Before]]></b:skin>
.comment-body-author {
-moz-border-radius: 15px;
border-radius: 15px;
background: #000000; /* BG color*/
color: #ffffff; /* Font color*/
border-top: 1px dotted #223344;border-bottom: 1px dotted #223344;border-left: 1px dotted #223344;border-right: 1px dotted #223344;
margin:0;
padding:0 0 0 20px;
}
.comment-body-author:hover {
-moz-border-radius: 15px;
border-radius: 15px;
background: #cccccc; /* BG Hover color*/
color: #000000; /* Font Hover color*/
border-top: 1px solid #990000;border-bottom: 1px solid #990000;border-left: 1px solid #990000;border-right: 1px solid #990000;
margin:0;
padding:0 0 0 20px;
}
-moz-border-radius: 15px;
border-radius: 15px;
background: #000000; /* BG color*/
color: #ffffff; /* Font color*/
border-top: 1px dotted #223344;border-bottom: 1px dotted #223344;border-left: 1px dotted #223344;border-right: 1px dotted #223344;
margin:0;
padding:0 0 0 20px;
}
.comment-body-author:hover {
-moz-border-radius: 15px;
border-radius: 15px;
background: #cccccc; /* BG Hover color*/
color: #000000; /* Font Hover color*/
border-top: 1px solid #990000;border-bottom: 1px solid #990000;border-left: 1px solid #990000;border-right: 1px solid #990000;
margin:0;
padding:0 0 0 20px;
}
Step 4. Now we need to edit the following section of code in your template.Finding a section of code can be hard so the best way is to find the first line and work from there.
<dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt expr:id='"comment-" + data:comment.id'>
<a expr:name='"comment-" + data:comment.id'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
said...
</dt>
<b:loop values='data:post.comments' var='comment'>
<dt expr:id='"comment-" + data:comment.id'>
<a expr:name='"comment-" + data:comment.id'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
said...
</dt>
Step 5. OK you have located the section of code, we now add two snippets of code to it.You can see the two snippets and were i have added them below in red.
<b:if cond='data:comment.author == data:post.author'>
<dd>
<p><data:comment.body/></p>
</dd>
<b:else/>
<dd>
<b:if cond='data:comment.isDeleted'>
<span><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>
</b:if>
<dd>
<span>
<a expr:href='"#comment-" + data:comment.id'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
</b:loop>
</dl>
Step 6. If you placed the code in the right place you can save your template and check it out.
Show Related Posts in Blogger Without Thumbnails
Blogger by default does not give several useful features however Developers have developed so many useful blogger hacks and tricks. One of these most useful blogger hacks is displaying Related Posts below each single post published in your blogspot blog. This hack displays related posts below your article which navigates your blog readers to other stuff from your blog. This is really a useful way to keep your readers on your blog for more time. "Related Posts" function comes with two options,displaying related links with Thumbnails or without thumbnails. Here we will talk about how to show related links without thumbnails
How to Add a Cute Animated Flying Twitter Bird in Blogspot / Blogger
"Twitter", is one of the most popular Social networking sites in the world among Bloggers to promote their blogs.There are a number of twitter widgets, scripts and plugins available to integrate Twitter with your blog.Most of the icons, buttons or badges are stationary or a fixed floating Twitter gadgets.Now here i have a very cool unique Blogger Twitter widget, an actual Animated flying Twitter Bird that flies around your blog.
This Plugin is java script based and it will display an animated Twitter bird that settles on different places of your blogs visible area.
Subscribe to:
Posts (Atom)



