• Resolved mmirlach

    (@mmirlach)


    Hi, in WordPress there’s the option to make a post sticky on top of the homepage, which gives it a slightly altered layout (grey box).

    Is there a way to make more changes to this specific post? In my case, I’d like to give it a 1px black border, hide the excerpt and make it half the height so it does not take as much space as the usual posts on the homepage.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Ben Sibley

    (@bensibley)

    Yea WordPress provides us with a CSS class to target sticky posts individually. Something like this should work well:

    .sticky.excerpt {
      border: solid 1px #000;
    }
    .sticky.excerpt .excerpt-content {
      display: none;
    }

    Removing the excerpt will decrease the height a lot on its own.

    Thread Starter mmirlach

    (@mmirlach)

    Thanks!

    Theme Author Ben Sibley

    (@bensibley)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change sticky post’ is closed to new replies.