Left sidebar customisation

  • In Progress
    Posted in: Orizon  
  • Member
    thenashone
    June 1, 2014 at 1:13 pm #31464

    When i registered for this forum i started to scan quickly through some threads and found that someone was asking to have a left sidebar. i too was requiring this feature after some quick editing i have a solution that i am happy with (not perfect)

    i have a small walk-round for this and i hope it helps others that too wanted this feature
    Create a page named tmp-leftsidebar-page.php
    paste the following code into it
    <?php
    /*
    * template name:new leftsidebar
    */
    ?>
    <?php get_header(); ?>
    <div id=”main_news_wrapper”>
    <div id=”row”>
    <?php if ( function_exists(‘dynamic_sidebar’) && is_active_sidebar(‘page’)) : ?>
    <div id=”right_wrapper”>
    <?php dynamic_sidebar(‘page’); ?>
    </div>
    <?php endif; ?>

    <!– Left wrapper Start –>
    <div id=”left_wrapper”>
    <div class=”header”>
    <h2>
    <?php echo orizon_breadcrumbs(); ?>
    </h2>
    </div>
    <div id=”post_wrapper”>
    <div id=”psidebar”>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile; endif; ?>
    </div>
    <div class=”clear”> </div>
    </div>
    </div>
    <!– Left wrapper end –>
    </div>
    </div>
    <?php get_footer(); ?>

    <style>

    #right_wrapper {
    float:left;
    width: 332px;
    margin-top:-15px;

    }
    </style>

    Upload into your main directory then go to your page and select “new-leftsidebar” from the template drop-down option.

    Like i stated above this is a simple fix but if anyone can improve it please feel free.





    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.