WordPress logo

WordPress logo

WordPress MU (or Multisite) is a fantastic way of managing multiple WordPress sites without the hassle of handling separate updates for each site. Because an MU installation shares resources, plugins and core files only need to be updated once and every site is updated. Handy, right?

With WPMU, you can install a range of plugins and themes, and with network-wide activation, all your WordPress subsites have access to those resources. The thing is, sometimes you want to restrict a theme to one particular site. It took me a while to work out how to do it, but it’s actually quite simple. Here’s a quick step-by-step of how to do it:

  • Start by going to the Themes section in Network Admin. Make sure your theme is installed (obviously) and that it is not network enabled. (Network enabled means it’s available to all sites, and you don’t want that in this case!)
  • Staying in Network Admin, go to Sites->All Sites. From this list, click on the name of the site you want to edit.
  • Click on the Themes tab. You should see a list of themes installed on the site. Find the theme you want and click the Enable link beside it.
  • Next, browse back to the WordPress Dashboard of the site you’re working with. Go to the Appearance section and you should now see your theme is available. Activate the theme from there, customise it to your requirements and then check the live site to see how your theme looks.

Key screens:

WordPress network disabled theme

In the Network -> Themes section, it’s important to make sure the theme isn’t network enabled – otherwise, it will be available to all sites in your network. Obviously, if you discover your theme is network enabled, make sure to disable it here.

Single site theme enable screen

Staying in the Network Admin area, go to the configuration for the individual site you want. Click on the themes tab and from here you can selectively enable new themes. Save your changes and make any widget/menu edits your site requires and your new theme should be live on the site.

Hope this helps a few other WordPress network admins out there 🙂

 

Google Chrome Logo

Google Chrome LogoThere’s nothing more frustrating than an unwanted URL that keeps popping up whenever you start typing a web address into Chrome. Maybe it’s been a site that you typed in by mistake and because it’s in your history it keeps coming up, always getting in the way of the result you want.

(Or maybe you’ve been visiting a site you don’t want anyone else to know about, but you don’t want to hose your entire browser history? Try using Incognito Mode next time!)

How do you get rid of unwanted single entries in the URL bar? It’s surprisingly simple. We’ve got instructions for both Windows and Mac OS X versions of Chrome.

On Windows

  1. Start typing the first few letters of the URL in question. The autocomplete entry should show up as usual.
  2. Use your arrow keys to navigate to the entry you’re looking for.
  3. Press SHIFT + DEL to delete the entry. Rinse and repeat for any additional items you want to remove.

On OS X

  1. Start typing the first few letters of the URL in question. The autocomplete entry should show up as usual.
  2. Use your arrow keys to navigate to the entry you’re looking for.
  3. Press FN + SHIFT + DEL to delete the entry. Rinse and repeat for any additional items you want to remove

A different approach – using Chrome History

This is a neat trick if you’ve got a lot of pages you want to selectively delete at once.

  1. Type chrome:history into the address bar.
  2. Search for the specific history entry.
  3. Click Edit items on the upper right corner – checkbox will appear in front of the history entries.
  4. Select the checkbox for the entries that you’d like to delete.
  5. Click Remove selected items.
  6. Click Done removing items to complete.

 

Ubuntu Logo

Ubuntu LogoCanonical’s decision to add an Amazon shopping lens to the latest version of Ubuntu 12.10, Quantal Quetzal has been hugely controversial. On one hand it brings an additional (and possibly very lucrative) revenue stream to the maker of the largest Linux distribution (which I support), but on the other, users are concerned for their privacy. Me, I just find the Amazon Shopping Lens a massive pain in the rear end.

Continue reading

Setting a keyboard shortcut for Launchpad

You know what would be handy in Mac OS X? If you were able to activate Launchpad with a keyboard shortcut. But for some reason, that’s not how it works on my MacBook. (Update: in later versions of Mac OS X, the F4 key will bring up the Launchpad menu.)

But there’s light at the end of the tunnel. You can assign a shortcut key for Launchpad very easily. Simply open your System Preferences and click the Keyboard item. It should start in Mission Control, but flick to Launchpad & Dock and you should see an option to Show Launchpad.

Continue reading

Apple MacBook Pro

Apple MacBook ProIf you’re a power multi-tasker, switching between open application windows is essential. On a Windows machine, ALT+Tab is your friend here, allowing you to switch between any open applications.

While COMMAND+Tab still works on Mac OS X, you’ll find that it doesn’t work when you try to switch between windows in the same program. For instance, if you’ve got two browser windows open – one for researching, one for drafting. Or maybe you want to switch between messages and the inbox in the Mail app.

Continue reading

Looking for a quick way to delete old files in Linux? For example, log files can build up over a long period of time.

Usage case: The default WordPress backup tool doesn’t delete old backup files. So, over time, these files can accumulate and take up valuable disk space. If you run a large and busy site, this can become a problem. So, in order to maintain a healthy file system, we’ll want to keep say the last 30 days’ worth of backups and discard anything older than that.

Continue reading

Doctor Who logo iPhone Wallpaper

Doctor Who logo iPhone Wallpaper

We’ve been scouring the internet for iPhone wallpapers lately after upgrading our iOS devices to the latest version – we want a wallpaper that’s swish and a teeny bit geeky.

So…we created our own – it’s the current Doctor Who logo set on a textured paper background. It should be subtle enough that it doesn’t detract from your iPhone’s home screen, but immediately identifiable as the Time Lord’s logo.

And yes, we promise, when our Photoshop skills improve, we’ll try and do something a tad sexier!

Tux, the Linux mascotRemember when we configured our headless Crunchbang computer the other day? Now that we’ve got the machine up and running and logging in automatically, we want to start some programs running when the machine boots up.

Well, the good news is that Crunchbang makes this process embarrassingly easy: the distribution has an autostart script that you can edit to run the programs of your choice. You can even specify a sleep delay so that programs load in a specific order and don’t overload the machine. This is some heavenly scripting!

Finding and editing autostart.sh

The autostart.sh script is the file you need to edit to customize your startup experience. Let’s fire up the terminal and do some editing – we’re going to fix a problem in my earlier post!

  1. Browse to the OpenBox config folder: cd ~/.config/openbox/
  2. Edit the autostart.sh file: nano autostart.sh
  3. Navigate to the bottom of the file – it’s the smartest place to add your own custom entries. Along the way note that a double hash (##) denotes a comment – always advisable to explain the commands you’ve added to your script!
  4. We’re going to configure the vino server service to start automatically, so add a comment like “## Start Vino server” and take a new line. In the new line, type /usr/lib/vino/vino-server & (the ampersand character at the end allows the script to continue processing any additional commands you might add). Add any other commands you’d like to run at startup.
  5. Save the autostart.sh file and then restart your computer to test.

The Sleep Command

A useful variant is to add the “sleep” command to your script. This delays execution of your program by a specified number of seconds, allowing the computer to launch programs sequentially, preserving system resources or allowing other tasks to complete first.

A modification of the command above would be:

(sleep 60s && /usr/lib/vino/vino-server) &

This would delay startup of the Vino server until 60 seconds after OpenBox loads. Feel free to play as creative as you like with this command – you could execute a system backup script, run an application or whatever else strikes your fancy.

Shutting down unwanted services

You can also comment out software in the script that you don’t want to run – for example the novelty Statler app that says a random phrase every now and again. Simply find that line in the autostart.sh script and comment it out with “##”.

Likewise you could disable the Conky service or the screensaver – both of which are activated via this script. Find the lines you want and comment them out.

What else?

So that’s it for this little tutorial – I’d be interested to see what other things people use the autostart script for in Crunchbang. Also, is it available in other Linux distributions?

Tux, the Linux mascotIf you read my previous post about building a headless Crunchbang Linux machine, you’ll understand that one of the next steps for us is to have the machine log in automatically.

Without an automatic login, the Vino server won’t have the chance to start and therefore you won’t be able to control the machine remotely. The good news is that configuring automatic logins in Crunchbang is remarkably easy.

Step by step: Configuring automatic logins

  1. Right-click anywhere on your Crunchbang desktop and browse to the System menu. Click on GDM Login Set-up. You’ll be prompted for your administration password to make these changes.
  2. Now, when the Login Window Preferences window appears, click on the Security tab and select Enable automatic login. You need to use the drop-down box to select the user account to log in when the computer starts.
  3. Save your settings and reboot the computer. It should log in automatically first time.

And that’s it. In our next tutorial, we’ll be looking at making applications start automatically when the Crunchbang computer starts up.

Tux, the Linux mascotI’ve been playing around with Crunchbang Linux for the last few days. I had a low spec old server lying around the house and wanted to see if it would perform better with a lightweight Linux distribution. The machine had been struggling under the latest Ubuntu 11.10, so I scrubbed it and installed Crunchbang.

The problem being that the machine runs in the attic office and doesn’t have a screen or keyboard, so remote access is essential. But Crunchbang doesn’t seem to come with a default remote desktop server, so we have to install one for ourselves.

Continue reading