Skip to content

Snippet: Center Blog Post Content With Smaller Width

You can also create this sort of affect by creating dynamic template for your posts.

The following CSS can be used to make your blog posts smaller and centered (when using the No Sidebar Layout).

body.single-post #content { width: 800px; margin: auto; max-width: 100%; }
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend WPCode)
Back To Top