How to Create and Style a Sticky Post in WordPress

Create a sticky post in WordPress

A sticky post stays at the top of your blog page, above newer posts. It is perfect for a welcome post, an important announcement, a popular guide, or a limited-time offer. WordPress has this feature built in, so you do not need a plugin.

How to Make a Post Sticky (Block Editor)

  1. Open the post you want to stick.
  2. In the Post settings sidebar on the right, look in the Summary panel.
  3. Check Stick to the top of the blog.
  4. Click Update or Publish.

You can also do this from the Posts list: hover over a post, click Quick Edit, check Make this post sticky, and click Update.

Sticky Posts in Block Themes

If you use a block theme (like Twenty Twenty-Five), your posts are shown with a Query Loop block. Select it in the Site Editor (Appearance > Editor) and find the Sticky posts setting. You can choose to include, exclude, or only show sticky posts. This also lets you build a “Featured” section with only sticky posts.

How to Style a Sticky Post

WordPress adds the CSS class “sticky” to sticky posts in most themes. You can use it to make them stand out. Add this CSS:

  • Classic themes: Appearance > Customize > Additional CSS.
  • Block themes: Appearance > Editor > Styles, then the three dots menu > Additional CSS.
.sticky {
  background: #edf8ff;
  border: 2px solid #d5dbe2;
  padding: 20px;
  border-radius: 8px;
}

This gives the sticky post a light blue background and a border. If nothing changes, your theme may not output the sticky class on the blog page. In a block theme, you can instead style the Query Loop block directly.

Tips for Using Sticky Posts

  • Use only one or two sticky posts. Too many push your new content down.
  • Update or remove sticky offers once they expire.
  • Sticky posts only affect the main blog page, not category pages or search results.

Want sidebar content that follows readers instead? See how to make a sidebar widget sticky.

Frequently Asked Questions

What is a sticky post in WordPress?

A post that stays at the top of your blog page, above newer posts, until you unstick it.

Why is my sticky post not showing at the top?

Your homepage may be a static page, or your theme uses a custom query that ignores sticky posts. In block themes, check the Query Loop sticky posts setting.

Can I make a page sticky?

No. The sticky feature only works for posts, not pages.

How do I remove a sticky post?

Open the post and uncheck Stick to the top of the blog, then update.

Comments

5 responses to “How to Create and Style a Sticky Post in WordPress”

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Yogananda Reddy Avatar
    Yogananda Reddy

    Hi Imtiaz Rayhan,

    i am not get it can u help me

    1. Istiak Rayhan Avatar
      Istiak Rayhan

      Yes, I will help you out. What is the thing about this post you are not understanding?

      1. Yogananda Reddy Avatar
        Yogananda Reddy

        when i paste the above code in css it not shows result thats my problem plz help me

        1. Istiak Rayhan Avatar
          Istiak Rayhan

          Maybe, this is a theme related issue. If you are using a Premium theme, contact with your theme provider.

  2. Raplus Avatar
    Raplus

    Hey Imtiaz Rayhan,

    I thought we have to change many things to create sticky post. I didn’t think that this is a very easy work as you have mentioned. Thanks bro :-)