1. Favorites, Pseudo Style

    Okay, at the request of hundreds dozens one of you, I have implemented a tag hack to create the concept of “favorite” posts in Tumblr. At the bottom of each page, where the now-floating navigation section is, you’ll see a new link for Favorites, which when clicked will show you our my favorite posts.

    How did I do it? Glad you asked. Since I am using Tumblr tags to create logically grouped post categories (photos, music, etc.), I normally assign one—and only one—tag to a post. That said, I created a new tag (“favorite”) that I use for, well, my favorites. Since my layout stylistically breaks if you have more than one tag assigned to a post, I used the old CSS First Child Pseudo Selector trick to hide a second (and third, fourth, etc.) tag in the layout. So, a post can be tagged as “photo” and “favorite” but only “photo” will show. Genius, you say? I know.

    Sorry, Internet Explorer 6.0 and older peeps. You don’t get to play—your layout will be all wonky. You can always join us in the 21st century, though.

     
  2. Nov 5th, 2008     bons mots