Best Contemporary Theology Meme Feeds Fixed

How To Make Blix Theme Ready for WordPress 2.1

Print Version January 11th, 2007

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.

Entry Filed under: Programming,WP Plugins

66 Comments

  • 1. Rob  |  May 14th, 2008 at 11:16 am

    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. Jeff  |  December 17th, 2008 at 7:12 pm

    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. Jeff  |  December 17th, 2008 at 7:55 pm

    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. Jeff  |  December 18th, 2008 at 3:32 pm

    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


Calendar

January 2007
M T W T F S S
« Dec   Feb »
1234567
891011121314
15161718192021
22232425262728
293031  

Related Reading