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... )
Comments 1
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