• Hello… I did my research and found out how to successfully style a sticky post. The only problem now is that even though the sticky post follows the style of .sticky, all posts now run together with no spacing between. Given the theme, they all appear in one box. The site in question:

    http://www.ampersandconnect.com

    I don’t write php so it is a little confusing to me. But I found that I needed to add the following line of code to index.php:

    <div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>

    in place of

    <div id=”post”>

    I found the sticky styling only works when I replace the code in the second of three places I found <div id=”post”> in index.php. I tried combinations of replacing the other two occurrences of it, but nothing made each post appear separately from each other, and some combinations negated the sticky styling.

    Pointers are hugely appreciated! Thanks!

  • The topic ‘Sticky post styling complication’ is closed to new replies.