Makes sense, thanks for the response, it’s weird since ever I’ve been coding a WordPress theme (2 month now), I’ve never come across a sticky post or a native WordPress gallery, the only gallery I know is the one when I upload images in the admin panel – is that the one you mean, or is there a different one as well?
.sticky: styles sticky posts
.gallery-caption: styles caption in the native WordPress Gallery.
If you are coding a theme to WP standards, then it is simply required that you style both sticky posts and gallery captions.
There is some debate over this, but right now, it is at least required that the classes be added to style.css, even if left empty. (The intent is to ensure that the developer has considered applying styles for sticky posts and for gallery captions, even if the design intent of the Theme precludes any particular styling.)
it’s weird since ever I’ve been coding a WordPress theme (2 month now), I’ve never come across a sticky post or a native WordPress gallery…
I’ve just tried the sticky function, and it works as expected here, the only issue I have is the .sticky class does not get inserted in the source code at all, which means that when I style it in the css file the sticky post does get affected. Any ideas why?
Ok I figured out I need to add post_class(), problem is that I already have assigned two classes to that ul element, any ideas how I can combine them?