Long Weekend

I was having some issues with the site in general over the week-end and still hadn’t been able to solve the Media Gallery issue that I posted about a few days ago. So I set out to figure all of those issues out before moving on to the next steps in getting the site design started.

Well to make a long story short I was never able to figure out a solution to the Media Gallery issue, which I thought was pretty major because how am I going to post pretty pictures and other things to jazz this place up a little. No matter what I did I was never able to get the gallery working correctly.

So I figured it was time to do something major to try to fix it. Well the major thing was I backup up everything and started with a fresh WordPress install. Since this installation is a multi-site installation it make that process I little more in-depth. But also because it was a multi-site installation I believe that was what was leading to the Media Gallery issue.

The good news that the fresh install fixed the Media Gallery issue. The not so good news is it took me a couple of days to get everything reconfigured back correctly (Which is why there haven’t been any updates in the last few days).  There is an image post that I posted just before this just for testing and it’s testing two things, one making sure the Media Gallery works which clearly it does and two to test the image post format so I can do some simple styling around that.

This whole process gave me a couple more ideas about topics to cover in the setting up of a WordPress install. Which I think I’ll cover as time allows this week.

WordPress MutliSite Media Library

So I was going to try to spice up the looks of things around here as the design is slowly getting worked it. But I’m also trying to get everything done be hide the scenes done (like plugins installed and working, reporting and analytics tracking, etc.) before I really jumped into everything else. So I figured hey you know something I’ll add some pretty images to make things look a little better. So why are there no images?

Seems there is a bug in the WPMS image uploading system. The images upload through the ‘Add New Media’ tab just fine but if you try to include that image into a post you’re given the nasty Red X. What’s stranger is that if you try to manually navigate to the file location on the server via a web browser it returns a 404 error. (404 means the item doesn’t exist.) But if you FTP to that location sure enough the file is sitting there just like it should be. It’s pretty interesting problem, enough that a couple of topics about it on the WordPress Support forums have popped up.

So to sum up, no images for the time being until that problem solved. So I really hope you like the black and grey for the time being.

Child Themes & @import

As I’ve stated before the theme of the site is going to be a child theme of a WordPress theme framework. Why child theme are really easy to set up you have to remember to add the @import CSS class or you’ll be left trying to figure what when wrong when you first active the new child them because there will be no CSS applied to the theme. What do you have to do it create a child theme? Here are all the steps:

  1. Create a new directory within your themes directory (/wp-content/themes/)
  2. You need to have the framework or theme you are going to use as the base of the child theme already installed in this directory. And before any one freaks out, installed simply means the folder that has the parent theme files just needs to be uploaded to your theme directory.
  3. In the new child theme directory create a style.css file that uses the following code to define that it’s both a child theme and which parent theme it is going to use.

/*
Theme Name:     ChildTheme Name
Theme URI:        ChildTheme URL
Description:        ChildTheme Description
Author:                Author’s Name
Author URI:       Author’s URL ie(http://example.com/about)
Template:           Parent Theme Name
Version:               Version Number
*/

@import url(“../parenttheme/style.css”);

IMPORTANT – Do not forget that @import CSS line or the child theme is going to think that you are going to what to write completely new CSS for the theme. Which if you want to do that just leave it out. But with the framework I’m using all of the CSS structure as already been coded so there is no reason for in this case in redo a bunch of stuff that’s already complete. Again the beauty of using frameworks or a theme like twentyeleven as a starting point for your designs a lot of CSS and coding is already completed thus saving you time.

One other side note. If you are using WordPress MultiSite be sure you active the theme through the network admin or you will not be able to active it on a subsite.