Posts Tagged as php

How to Create a Theme Development Environment for a Live WordPress Site

January 11th, 2010 47 Comments

Any good website owner knows that they need to be constantly looking at ways to improve their site even through small little tweaks. If you’re using WordPress you’ll notice that it isn’t easy to create a development version without creating a separate installation. Of course, you can make changes directly on a live WordPress site but that isn’t recommended for anything other than minor tweaks.

With the help of an excellent plugin for WordPress called Theme switch and preview, this tutorial will allow you to easily switch between the live site and development versions using two different themes on the same installation of WordPress. We’ll do this by creating a bar at the top of the page which will clearly show you if you’re viewing the live theme (what everyone else sees) or the development theme with a link to switch between the two.

While there may well be a Worpdress plugin that does everything below, it’s much more rewarding and satisfying to create your own solution.

Read more...

Add a Category and Page Specific Class to the Body Tag in WordPress

July 23rd, 2009 5 Comments

wordpress

WordPress is a powerful CMS, especially for blogging but what if you want to style something on a single page and not affect anything on other pages? There isn’t built-in way to do this so we need to use the platform that WordPress runs on by writing some custom PHP.

Read more...
Page: 1