How To Make Blix Theme Ready for WordPress 2.1

Just a heads up to those out their in blogland who, like me, use Blix by Sebastian Schmieg as their WordPress theme.

The upcoming version 2.1 has made some change which mess up Blix’s handling of its navigation bar. The fix is simple and I post it here to allay anyone’s nerves who begin to panic when their pages seem to disappear.

In the Blix theme folder there’s a file called BX_functions.php and somwhere about halfway through is a function BX_get_pages…

function BX_get_pages($with_content = '')
{
   global $wpdb;
   $query = "SELECT ID, post_title, post_name FROM " . $wpdb->posts . " WHERE post_status='static' ORDER BY menu_order ASC";
   if ($with_content == "with_content") {
      $query = "SELECT ID, post_title,post_name, post_content FROM " . $wpdb->posts . " WHERE post_status='static' ORDER BY menu_order ASC";
   }
   return $wpdb->get_results($query);
}

When you eventually upgrade to WordPress 2.1 you will need to make two small changes to this function. Find the text WHERE post_status='static', which occurs twice, and change it to WHERE post_type='page'. That’s all there is to it.

66 replies on “How To Make Blix Theme Ready for WordPress 2.1”

  1. mike: I think you are right about Blix. I’ve never had that many tabs so never had to worry about it. I think it is just an artifact of using a fixed-width design with fixed-width buttons.

  2. Hi,
    I just started using Blix and have found it to be great for my needs. I use it sale products and such but do not require a side bar on the main pages. Can anyone tell me how to add a sidebar to the blog pages Only?

    Thank so much
    Jeff

  3. Hey Mike,

    I might have a solution for your Nav problem.

    Open you Layout.css and look about 1/4 of the way down the page for…

    #navigation li a {
    display:block;
    padding:0 18px; ( Change this padding to 5px or less)
    font-size:0.8em;
    text-transform:uppercase;
    letter-spacing:1px;

    This will reduce the padding on each side of the links and allow for more links.

    Jeff

  4. PLEASE DISREGARD POST # 52 as follows:
    …………………………………………………………..
    Hi,
    I just started using Blix and have found it to be great for my needs. I use it sale products and such but do not require a side bar on the main pages. Can anyone tell me how to add a sidebar to the blog pages Only?
    ………………………………………………………..

    I figured it out . Thanks anyways.
    Jeff

Comments are closed.