Search
Enlightenment
  • Beginning iPhone 3 Development: Exploring the iPhone SDK
    Beginning iPhone 3 Development: Exploring the iPhone SDK
    by Dave Mark, Jeff LaMarche
  • Code Complete: A Practical Handbook of Software Construction
    Code Complete: A Practical Handbook of Software Construction
    by Steve McConnell
  • How to Break Software: A Practical Guide to Testing W/CD
    How to Break Software: A Practical Guide to Testing W/CD
    by James A. Whittaker
  • How Linux Works: What Every Superuser Should Know
    How Linux Works: What Every Superuser Should Know
    by Brian Ward
  • Rootkits: Subverting the Windows Kernel
    Rootkits: Subverting the Windows Kernel
    by Greg Hoglund, Jamie Butler
Blog Archives
Powered By

Want an awesome looking site like mine? Look no further than Squarespace.

Looking for a Web Host or a Domain Name registrar? Check out Bihira.

« Domain Name Change | Main | Status Update »
Tuesday
30Jun2009

Highlight the Author's Comments in Squarespace

Here's another Squarespace tutorial for you. This one's a bit shorter than the last one. In this tutorial, I'll show you how to highlight comments that are written by the author, so that they stand out amongst regular user comments. This image should give you an idea of what I mean.

This is a short and simple little trick, but I'm sure you can easily see how effective it can be. By default, Squarespace doesn't really provide much of an indicator that a comment has been left by the author (other than the username, but nobody pays much attention to that anyway).

To do this, start off by setting the style of the regular user comments. Just do this using the Font, Colors & Sizes tool when in Style Editing mode. Chances are, you already have this style set the way you want it. Once you've done that, go to Custom CSS and add the following

.authored-by-yournamehere .comment
{ /* style here */ }

Obviously you need to replace "yournamehere" with your actual username. Then just apply whatever style/colors you want. To give you an example, here's what I did...

.authored-by-errornix .comment
{background-color: #BFFFF0; border-color: #E6E6E6;}

If you want, you could easily change other things, such as font settings, or add images. But im my opinion, this would just look weird. By only adjusting the color settings, you'll inherit all of your other style settings, and your comments will just appear to be highlighted rather than appearing to be a completely different style.

Like I said, this was a short and simple one. But if you have any questions, let me know!

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (5)

Hi. I know this is an older post but I was so happy to find it. I tried to add the code but it did not change the appearance of comments authored by me. Does it need to go anywhere specific? And do I need to omit something? The only code I see in my CSS that indicates it's related to comments is below and I tried to place your code after it but didn't have any luck:

.journal-comment-area-wrapper .journal-comment-area .comment-wrapper(-OR-).authored-by-None .comment .body { }

Thanks for helping out a newbie!

October 7, 2009 | Unregistered CommenterSJ

The code you posted doesn't actually DO anything. It's merely a template, provided by Squarespace, to achieve something similar to what I've done.

Remove the code that you posted from your CSS and replace it with my example (don't forget to substitute YOUR username).

October 12, 2009 | Registered CommenterErrornix

I couldn't get this to work either. I've taken the code exactly as you have it above and entered my username but nothing happens. Does it have a specific place it needs to go in the Custom CSS area?

October 14, 2009 | Unregistered CommenterBC

Thanks. I tried again but no success. Thanks for your time--unfortunately it's not something squarespace supports & I'm a newbie so I'm stuck.

October 14, 2009 | Unregistered CommenterSJ

That's weird. I'm sorry it didn't work for you. Perhaps I need to modify this post to accommodate other Squarespace themes?

If you post a link to your site, I'd be happy to take a look at it and try to help you out.

October 16, 2009 | Registered CommenterErrornix

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>