ThemeShaper Forums » Thematic

Styling commentators in Recent Comments widget

(2 posts)
  • Started 5 years ago by gelay
  • Latest reply from dannydamnboy
  • This topic is resolved
  1. I have the default Recent Comments widget enabled in my sidebar. I have found out that some people type the letters properly, with the first letter of their name in UPPERCASE. But then there are some commentators who type their name in lowercase. For aesthetic reasons, I would like to force all the names of the recent commentators to appear in UPPERCASE by using this CSS:

    ul#recentcomments li.recentcomments a.url {text-transform: uppercase;}

    My problem is that if a commentator does not specify a URL, then the above CSS style has no effect. There seems to be no way to style a commentator's name without a URL.

    Any solution to this?

    Posted 5 years ago #
  2. Try with this one:

    .main-aside ul ul li.recentcomments, .sub-aside ul ul li.recentcomments {
    text-transformation:capitalize;
    }

    It capitalize the first letter of EVERY word (links included); there's no other way if the user doesn't leave a link. Or try with UPPERCASE if you don't mind to have the link uppercase

    Posted 5 years ago #

RSS feed for this topic

Reply

You must log in to post.