• I have the “sticky” class defined in my css, but it isn’t altering the stickies in my blog.

    I checked my loop, and it has: <div <?php post_class() ?> id="post-<?php the_ID(); ?>">, but when I view the source, it isn’t placing the “sticky” class in the code.

    Am I missing something obvious? Is something stripping out my post classes?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter schellstudio

    (@schellstudio)

    Okay, I got the tags to show up, but the css is not responding. There is a definitions for “sticky” in my css, but it doesn’t show up in the post, even though the source shows that the class is there.

    Any help would be appreciated.

    use firebug addon for firefox. That will show you if your css is being superceded by other styles. Its the best way to troubleshoot css issues

    otherwise you can give a link, and that’s exactly what we would do

    Thread Starter schellstudio

    (@schellstudio)

    When I highlight the post, Firebug show that the class is “sticky”, but it shows a line through my margin attribute. Even more frustrating: it doesn’t even display the background or border attributes, both of which are in the css file. I don’t know why these are getting stripped out. If there was a conflict, shouldn’t there just be a line-through like it did with my margin? Also, the “sticky” class is defined at the bottom of my stylesheet. Shouldn’t that place it near the top of the hierarchy?

    possibly need to be more specific with the css?

    I know this is an old post but I have the same issue as this person had where I cannot style a sticky post. The sticky class was not in my css anywhere so I added it. That is irrelevant at this point because the class is not referenced anywhere in the page source.

    Any help is appreciated – I do want to highlight sticky posts in some fashion. I am familiar with the coding to some degree – I am using a template I purchased but customized heavily for my purpose.

    The top post titled “New Perspective” is sticky.

    link to blog page

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't Style Sticky’ is closed to new replies.