Border or change of background color around sticky-post only?

May 29, 2008 21:13

I'm curious if there is a way to put a border around, or change the background color of, the sticky post and ONLY the sticky post. Basically, I'd like to set it apart from the rest of the entries in my community gardeningSuggestions? I know how to change the background color for the title of the sticky post, but that's not quite what I'm looking for ( Read more... )

entries:sticky post, entries:background

Leave a comment

Comments 1

av8rmike May 30 2008, 14:04:09 UTC
If you want to add a background using a CSS-only method, there's one described here, which basically involves adding a background image to #alpha-inner and positioning it to line up with the sticky post.

A better (IMHO) method is to add a specific CSS ID to the sticky post, which will allow you to apply CSS styling to it specifically. The downside is that it requires a Paid account and theme layer.
function print_sticky() {
if ($*sticky_post != "") {
var string id = " id=\"asset-stickypost\""; # Add a CSS ID to the HTML element
"""

""";

if ($*sticky_subject != "") {
print safe """$*sticky_subject
""";
} else {
"""Sticky Post
""";
}

"\n";
"""

""";

print safe $*sticky_post;

"\n\n";
"""
\n\n\n""";
}
}

Reply


Leave a comment

Up