Skip to content

The Ultimate Guide to Unique Post Design in WordPress

Creating a unique design for each post is something I’ve become increasingly interested in, and obviously I’ve been searching for the best way to do this with my platform of choice, WordPress. In this post I’ll go through a number of ways to achieve unique blog design and the pros and cons of each.

The ways of doing it

For me, there are 5 ways of doing this:

  • Custom field with inline styling.
  • Custom field with link to stylesheet.
  • p class on each paragraph – do this with a plugin.
  • div class on groups of paragraphs – create own visual editor buttons to do this.
  • Shortcodes which output paragraph or div class.
  • Write out code in text editor then copy across.
  • Post templates

Clearly, these need to be combined to create one overall awesome way of doing things and I think one must look at all the different ways of doing things and choose a personal favourite.

Using custom fields & inline styling

<?php if (is_single()) { ?>

	<?php $css = get_post_meta($post->ID, 'css', true);
	if ($css) {

	<style type="text/css">
	   <?php echo get_post_meta($post->ID, "css", true); ?>


	<?php } else { ?>

	<?php } ?>

<?php } ?>

This is the way I like to do things. A custom field with the value of some inline styling. If it doesn’t exist, nothing happens, if it does then the inline styling takes priority over what is in the stylesheet and you get a fancy new background image or whatever.

It’d be done with something like the code on the left; you’d need to create a custom field ‘css’ and then in it pop your styling. As we’re in an if statement, if you don’t create a custom field, then nothing gets displayed. Of course, there are some pros and some cons:


Easy to do.
Quick way to add in simple changes.
Doesn’t complicate things at all.


Can’t reuse code in different posts (easily).
Not practical for large amounts of styling.

Good for?

So this method is best for the occasional unique designer. Good for those who are only going to do this occasionally.




Alex Denning

Inline Feedbacks
View all comments

Or start the conversation in our Facebook group for WordPress professionals. Find answers, share tips, and get help from other WordPress experts. Join now (it’s free)!

Most Searched Articles

Best JavaScript Libraries and Frameworks: Try These 14 in 2024

In this post, we look at the best JavaScript libraries and frameworks to try out this year. Why? Well, with JavaScript being available in every web browser, this makes it the most accessible programming language of ...

25 Best Free WordPress Themes (Responsive, Mobile-Ready, Beautiful)

If you're looking for only the best free WordPress themes in the market for this year, then you're in the right place. We have more than enough such themes for you right ...

12 Best WordPress Hosting Providers of 2024 Compared and Tested

Looking for the best WordPress hosting that you can actually afford? We did the testing for you. Here are 10+ best hosts on the market ...

Handpicked Articles

How to Make a WordPress Website: Ultimate Guide for All Users – Beginners, Intermediate, Advanced

Many people wonder how to make a WordPress website. They’ve heard about WordPress, its incredible popularity, excellent features and designs, and now they want to join the pack and build a WordPress website of their own. So, where does one get ...

How to Start an Ecommerce Business: Ultimate Guide for 2024

Is this going to be the year you learn how to start an eCommerce business from scratch? You’re certainly in the right place! This guide will give you a roadmap to getting from 0 to a fully functional eCommerce business. ...