WordPress.org

Ready to get started?Download WordPress

Forums

Add left sidebar to Kubrick (9 posts)

  1. thegreatnorth
    Member
    Posted 9 years ago #

    I have modified my Kubrick template to have a header.php, sidebar-left.php, sidebar-right.php, index.php, and footer.php.
    How do I make Kubrick call my two new sidebars from index.php?

    I would like <?php get_sidebar-left(); ?> to call up sidebar-left.php and <?php get_sidebar-right(); ?> to call up sidebar-right.php

    How would this be done?
    WP 1.5-01-29-04 and default (Kubrick) theme

  2. Kafkaesqui

    Posted 9 years ago #

    Try this in your template where you want to load the files:

    <?php require_once(TEMPLATEPATH . '/sidebar-left.php'); ?>

    <?php require_once(TEMPLATEPATH . '/sidebar-right.php'); ?>

  3. thegreatnorth
    Member
    Posted 9 years ago #

    That worked....
    thanks

  4. solarpunk
    Member
    Posted 9 years ago #

    Thegreatnorth,

    care to share the template code. i being trying to make a 3 column layout with kubrick template using php the say you are doing. I have 3 column layout but it is base in trident, i think. it was long time ago since being modifying it. you can view my blog at http://www.fusionrain.com/blog

    thanks
    solarpunk

  5. navigadget
    Member
    Posted 8 years ago #

    Hey I need help with this too. I tried doing the exact same thing. I changed the code in general functions file to call two different functions (left and right) and changed every instance of get_sidebar to get_l-sidebar or get_r-sidebar. I also copied sidebar.php into two files (l-sidebar and r-sidebar) and all I get on my main page is a big blank. So I must have done something wrong. Any clue?

    oh.. I started with the three-col-cubrick theme by the way.
    Help please.

  6. navigadget
    Member
    Posted 8 years ago #

    OK, now it works. I guess I should leave the 'general functions' file alone. I only called it in the template files.

  7. dnraikes
    Member
    Posted 8 years ago #

    Ok, I want to do the same kind of thing, but how do I control the widths of the sidebars?
    I only want them to be about 15% of the width of my window while the middle column I want to be 70% of the width.

    site: http://fitness.draikes.com

  8. moshu
    Member
    Posted 8 years ago #

    The width is controlled by a bg image:
    http://fitness.draikes.com/wp-content/themes/fitness/images/kubrickbg.jpg
    Unless you modify the image itself, you cannot do much.

  9. Jason Koscinski
    Member
    Posted 8 years ago #

    dear user "thegreatnorth" or anyone else: I would like to add the left sidebar to a site using the kubrick theme. I see you accomplished already. do you mind sharing with me the code and exactly where to place it? thanks much.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.