Home > Tutorial > Highlight Blogger Author Comments
Highlight Blogger Author Comments
Posted on Thursday, December 23, 2010 by android apps market for tablests
It has been awhile. This time, I'm going to show you a quick and easy way to make your comments (author comments) look different. In a thread full of comments, one might feel the need to isolate the author's comments from readers' comments, probably by highlighting it or making it look different.
This tweak works with both Layout (Minima, Harbor, Denim, Rounders, etc) and Designer (Simple, Picture Window, Awesome Inc, etc) templates. Basically, it'll work with all Blogger 'built-in' templates, probably third party templates as well. Consider this my Christmas gift.
UPDATE: THIS TWEAK WILL NOT WORK WITH THE NEW BLOGGER REPLY COMMENT SYSTEM. CLICK ON 'REVERT WIDGET TEMPLATES TO DEFAULT' TO UNDO THIS TWEAK. I'VE PUBLISHED A NEW WAY OF HIGHLIGHTING AUTHOR COMMENTS FOR THE NEW THREADED SYSTEM, CHECK IT OUT.
This tweak works with both Layout (Minima, Harbor, Denim, Rounders, etc) and Designer (Simple, Picture Window, Awesome Inc, etc) templates. Basically, it'll work with all Blogger 'built-in' templates, probably third party templates as well. Consider this my Christmas gift.
Step 1:
If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Back Up (Download Full Template) - Check the box next to 'Expand Widget Templates'
If you're using the new Blogger interface: Go to Dashboard - Template - Backup/Restore - Download Full Template - Close - Edit HTML - Proceed - Check the box next to 'Expand Widget Templates'
Find and delete the following lines:
The code before being deleted (ending portion):
If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Back Up (Download Full Template) - Check the box next to 'Expand Widget Templates'
If you're using the new Blogger interface: Go to Dashboard - Template - Backup/Restore - Download Full Template - Close - Edit HTML - Proceed - Check the box next to 'Expand Widget Templates'
Find and delete the following lines:
<dl expr:class='data:post.avatarIndentClass' id='comments-block'>The code before being deleted (starting portion):
<b:loop values='data:post.comments' var='comment'>
<dt expr:class='"comment-author " + data:comment.authorClass' expr:id='data:comment.anchorName'>
<b:if cond='data:comment.favicon'>
<img expr:src='data:comment.favicon' height='16px' style='margin-bottom:-2px;' width='16px'/>
</b:if>
<a expr:name='data:comment.anchorName'/>
<b:if cond='data:blog.enabledCommentProfileImages'>
<data:comment.authorAvatarImage/>
</b:if>
<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>
<data:commentPostedByMsg/>
</dt>
<dd class='comment-body' expr:id='data:widget.instanceId + data:comment.cmtBodyIdPostfix'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p>
<data:comment.body/>
</p>
</b:if>
</dd>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='data:comment.url' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
</b:loop>
</dl>
The code before being deleted (ending portion):
Step 2:
Place this modified line in place of the deleted lines.
The modified code in place (ending portion):
Place this modified line in place of the deleted lines.
<b:loop values='data:post.comments' var='comment'>The modified code in place (starting portion):
<b:if cond='data:comment.author == data:post.author'>
<div id="authorcomment">
<b:else/>
<div id="readercomment">
</b:if>
<dl expr:class='data:post.avatarIndentClass' id='comments-block'>
<dt expr:class='"comment-author " + data:comment.authorClass' expr:id='data:comment.anchorName'>
<b:if cond='data:comment.favicon'>
<img expr:src='data:comment.favicon' height='16px' style='margin-bottom:-2px;' width='16px'/>
</b:if>
<a expr:name='data:comment.anchorName'/>
<b:if cond='data:blog.enabledCommentProfileImages'>
<data:comment.authorAvatarImage/>
</b:if>
<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>
<data:commentPostedByMsg/>
</dt>
<dd class='comment-body' expr:id='data:widget.instanceId + data:comment.cmtBodyIdPostfix'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p>
<data:comment.body/>
</p>
</b:if>
</dd>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='data:comment.url' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
</dl>
</div>
</b:loop>
The modified code in place (ending portion):
Step 3:
If you're using the old Blogger interface: Go to Dashboard - Design - Template Designer - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.
If you're using the new Blogger interface: Go to Dashboard ('House' symbol) - Template - Customize - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.
If you're using the old Blogger interface: Go to Dashboard - Design - Template Designer - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.
If you're using the new Blogger interface: Go to Dashboard ('House' symbol) - Template - Customize - Advanced - Add CSS - paste the following code - Press enter after the last character of the last line } - Apply to Blog.
#authorcomment{
background: yellow url("http://www.blogblog.com/1kt/transparent/white80.png");
border: 10px double orange;
padding: 4px;
color: black;
}You should be able to see your highlighted comments already. If you want to customize this style further, refer to the following step.Customization:
There are lots of ways to customize the look of your highlighted author comments. I'll list some of the common ones here. If you have something specific in mind, you can leave a comment and I'll try to reply you with a solution.
This is the code that you've added to your template in Step 3:
It took me really long to write this one, not to mention the time spent to figure out how to do it in the first place. I hope it will be helpful for all of you. Merry Christmas and Happy New Year, to all of you, my readers.
There are lots of ways to customize the look of your highlighted author comments. I'll list some of the common ones here. If you have something specific in mind, you can leave a comment and I'll try to reply you with a solution.
This is the code that you've added to your template in Step 3:
#authorcomment{
background: yellow url("http://www.blogblog.com/1kt/transparent/white80.png");
border: 10px double orange;
padding: 4px;
color: black;
}| Background | You can either use a plain color or an image as your background. I've used a combination of both (white transparent image with yellow plain color). If you want to use a background image only, declare your background as such (replace IMAGEURLHERE with the URL of your image): background: url(IMAGEURLHERE);For plain colors, use this: background: white;If you want more choices of plain colors, use HEX code instead: background: #121212;You can get the hex code for a given color from this useful site. |
| Border | The syntax for CSS border is:border: 10px double orange;
|
| Padding | I've included a padding in my code because I think without a padding, the author's profile image is too close to the border. You can set the padding's value to 0 to see what I mean. |
| Comment Text Color | For plain colors, use this:color: white;If you want more choices of plain colors, use HEX code instead: color: #121212; |
| Author's Name Color | You can change the color of the author's name by going to Template Designer - Advanced - Add CSS - paste the following code (leave a space between codes, if you already have existing codes in your 'Add CSS' box) - press enter after the last character of the last line } - Apply to Blog:#authorcomment dt a{ |
| Comment Action Message | I don't know what else to call it. I'm referring to the word 'said' in my comments. You can change its color by going to Template Designer - Advanced - Add CSS - paste the following code (leave a space between codes, if you already have existing codes in your 'Add CSS' box) - press enter after the last character of the last line } - Apply to Blog:#authorcomment dt{ |
| Comment Timestamp | You can change its color by going to Template Designer - Advanced - Add CSS - paste the following code (leave a space between codes, if you already have existing codes in your 'Add CSS' box) - press enter after the last character of the last line } - Apply to Blog:#authorcomment dd a{ |
| Bold Author's Name | I did not include this in the example above (for simplicity), but I've used it in my template. You can make your Author's name bold by going to Template Designer - Advanced - Add CSS - paste the following code (leave a space between codes, if you already have existing codes in your 'Add CSS' box) - press enter after the last character of the last line } - Apply to Blog:#authorcomment dt, #authorcomment dt a{ |
| Style Reader's Comments | If you're wondering how you can defeat the purpose of this entire tutorial by giving your readers' comments a unique style as well, I'm gonna show you how. Just change the ID that is being addressed. The ID for readers' comments is 'readercomment'. Here's a quick example on how you can make use of this:#readercomment{ |
It took me really long to write this one, not to mention the time spent to figure out how to do it in the first place. I hope it will be helpful for all of you. Merry Christmas and Happy New Year, to all of you, my readers.
Category Article Comments, Tutorial
Powered by Blogger.
Blog Archive
-
▼
2010
(1682)
-
▼
December
(306)
- Print Pictures from Web Pages
- How to speed up your slow internet connection?
- How to Customize Your Browser Toolbar?
- How to display the hidden settings of LG handsets?
- How to display the hidden settings of Nokia mobiles?
- How to display the hidden settings of Samsung mobi...
- How to use Bluetooth technology to connect laptop ...
- Cara Hack Game Ninja Saga
- Cara Daftar Gamescool Point Blank PB Indonesia Online
- Cheat Point Blank PB 01012011Neutron Update Terbar...
- Cheat Point Blank 1 Januari 2011 Scarletze.V.1
- Happy New Year To All iphoneland.de.lv Readers !
- iPhone Apps May be Spying on You [Warning]
- Cheat Point Blank 01012011 5Nutzer A.1.2 1 Januari...
- Cheat Point Blank 01012011 NEW aJiE Underground 2 ...
- Cheat Point Blank 31122010 PigyBinz TimNas Garuda ...
- Cheat Point Blank SNUTZTRILOGY
- Cheat Point Blank Neutron V.1 Fix
- Cheat Point Blank 27122010 Viper + Hide + headgear...
- Redsn0w 0.9.7b4 to Untethered Jailbreak Without th...
- myTouch Slide and myTouch 4G Store
- This iPod nano 6th-Gen Hack Can Lead To A Possible...
- How To Remove Apps and Add Spaces To iPod Nano 6G ...
- iPod nano 6G DFU Mode Discovered ! Possibilities O...
- Rubyra1n Jailbreak ?
- iPad 2 with Wi-Fi, UMTS and CDMA Models
- iPad not charging when connected to computer
- How to change iTunes credit card info on iPad
- Utilising Unused Space in Blogger Header
- Redsn0w 0.9.7b4 will Include USBMuxd and Beta 5 wi...
- 1 Million Apple TVs Sold in Three Months
- The Monster at the End of This Book for iPad
- iPad backup session failed
- iPad 2 will feature a dual-core processor
- iFixit - Repair Manual app for iPad
- How to disable iPad's Picture Frame
- BackBoard Makes Switching Between Themes A Breeze!
- Download i-Funbox V1.1.407.389
- The 10 Best Jailbreak Apps of 2010
- Recovery Mode Helper Tool RecBoot 2.0 Now Availabl...
- Download Icon Renamer 1.0 [Video]
- Redsn0w 0.9.7b3 is Out ! Fixes TaskSwitcher and Ap...
- Sn0wbreeze 2.2 to Offer Baseband Preservation Mode
- Bluetooth, Music and iTunes Stuck After Jailbreaki...
- Blogger New Year Banner
- [Update]HOW TO: Jailbreak iOS 4.2.1 Untethered wit...
- Download Redsn0w 0.9.7b1 to Untether iOS 4.2.1 Jai...
- Merry Christmas
- What Happens When You Steal a Hacker's Computer [V...
- Happy Holidays from the Hotpot Team
- Awesome Note for iPad (+Todo)
- iPad Sleep/Wake button not working
- Pictureka! for iPad
- Avast!.Antivirus.5.0.584.Pre-Release FREE DOWNLOAD
- Download BitDefender Total Security 2011
- Download Bitdefender Internet Security 2011
- Review Kaspersky Internet Security 2011
- iPhone App Piracy Tool IPA God is Now Open Source[...
- Last-Minute Shopping in Portland, Powered by Hotpot
- Redsn0w Untethered Jailbreak (Backup Plan) for iOS...
- The untethered jailbreak firmware 4.2.1 developed ...
- Everything About Apple's 2010 Year in a Video !
- The lights of a Christmas tree controlled by an iP...
- Merged Places Pages to Unmerge "Facebook Allows It...
- Angry Birds is updated "the Mighty Eagle finally" ...
- Earphone jack problems with iPad
- Backup session cannot be started with iPad
- AirPlay no sound from iPad to Airport Express
- �Pull To Refresh Safari� Makes it Fresh to Reload ...
- Highlight Blogger Author Comments
- Dashing through the snow... with NORAD and Google
- Dashing through the snow... with NORAD and Google
- Apple's Remote App Supports AirPlay
- AirPlay icon missing on iPad How to Fix
- AirPrint not working on my iPad
- Camera+ Gets Back 4 Free Here with a Major Update !
- Comex Untethered Jailbreak is Not Ready for Christ...
- SHAtter Bootrom Jailbreak Exploit Has Been Leaked
- CopyTrans TuneSwift Simplifies iTunes Migration !
- Skyfire for iPad Hits the App Store
- Play Flash video on iPad with Skyfire Web Browser
- Christmas Gifts for iPad Lovers
- iPad no message selected when saved mail
- Info Complete Specification "Motorola Citrus WX445...
- Got Android? Start Rating Even Faster!
- Android In Spaaaace!
- Android In Spaaaace!
- �SB 2 Cloud� Jailbreak Tweak cracked and Free at C...
- Apple iPhoto 9.1.1 [Download]
- How to rename calendars on iPad
- info Specification and View "HTC 7 Pro CDMA" New ...
- WeBe++ Transforms your iPhone into a Bluetooth Key...
- Meet Your (Hotpot) Neighbors: James and Sara Ebenger
- How An iPhone App Can See Your Location Without As...
- Downgrade 6.15.00 Baseband Task Will Start After R...
- Apple Pulled WikiLeaks App Out the App Store[We st...
- Untethered Jailbreak 4.2.1 with Redn0w will not On...
- Info Specification GSM Candybar Phone "Samsung C35...
- 360 Web Browser: A powerful browser with advanced ...
- Navigon's MobileNavigator Updates with iPad Support
-
▼
December
(306)




