Skip to content
Download the Ghost Themes Bundle for only $249 β€” Use BUNDLE code for 10% discount πŸ”₯

Centered Post Layout in Krabi


Recently, I got a few requests about centering the Krabi theme post layout and to remove the sidebar so I decided to share how to do this with the following two steps.

Krabi Post centered

  1. Duplicate the default.hbs file and give it another name, for example, default-post.hbs. Then, remove lines from 19 to 21.
  2. In the post.hbs file, change the first line to {{!< default-post}}.

That’s all what you need to do and the post will be centered automatically.


In case you want to add a wide and full width style to images, you can add the following CSS code to the Ghost admin Code Injection (Site Header) section.

<style>
  .kg-width-full {
    width: auto;
  }

  @media (min-width: 40em) {
    .kg-width-full .kg-image {
      max-width: 100vw;
      pointer-events: none;
    }
  }

  @media (min-width: 64em) {
    .kg-width-wide {
      width: 100vw;
      max-width: 1140px;
      padding-left: 40px;
      padding-right: 40px;
  }}
</style>

akash.at Post Content Center
The method is being used at akash.at

Make a Stunning Ghost Website

Beautiful, functional Ghost CMS themes with unparalleled support.

Explore themes β†’
  • Easy Install
  • Free Support & Updates
  • 100% Money-Back Guarantee