Topic: "Widebar"

I don't know what it's called officially, but I'd like the option of a "widebar", i.e. a sidebar with a split sidebar below.

Like in the linoluna theme, where the split sidebar contains two columns for narrower widgets: http://michaelhutagalung.com/wp-content … na-big.jpg

smile

WP 3.0.2
Arras 1.5.01
fizgiggery.com
flaurena.com

Thumbs up

Re: "Widebar"

You have allready that option. Pleae check check the "Bottom sidebar #1" and "Bottom sidebar #2"

Supporting Arras for Romanian public! Updates of Romanian version for Arras can be found here. You can visit my WordPress support project to see the power of Romanian Arras!

Re: "Widebar"

dumbravaandrei wrote:

You have allready that option. Pleae check check the "Bottom sidebar #1" and "Bottom sidebar #2"

Not exactly - these widget areas appear below the posts.  I'd like two widget areas to appear in the sidebar!

WP 3.0.2
Arras 1.5.01
fizgiggery.com
flaurena.com

Thumbs up

Re: "Widebar"

Below the posts you have the footer sidebar smile

Supporting Arras for Romanian public! Updates of Romanian version for Arras can be found here. You can visit my WordPress support project to see the power of Romanian Arras!

Re: "Widebar"

Fizgiggery wants a split sidebar, ie 2 x 150px where the normal one is 300px.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: "Widebar"

extatix wrote:

Fizgiggery wants a split sidebar, ie 2 x 150px where the normal one is 300px.

Exactly! Well put.

WP 3.0.2
Arras 1.5.01
fizgiggery.com
flaurena.com

Thumbs up

Re: "Widebar"

Widgets are relatively easy to register into the theme. Try this out for what you are wanting.

Open sidebar.php

Paste the following to the bottom of the page

<div id="split-left" class="aside main-aside sidebar">
    <ul class="xoxo">
        <!-- Widgetized sidebar, if you have the plugin installed.  -->
        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Split Sidebar Left') ) : ?>
        <li></li>        
        <?php endif; ?>
    </ul>
    <?php arras_below_sidebar() ?>  
</div><!-- #split sidebar left -->
<div id="split-right" class="aside main-aside sidebar">
    <ul class="xoxo">
        <!-- Widgetized sidebar, if you have the plugin installed.  -->
        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Split Sidebar Right') ) : ?>
        <li></li>        
        <?php endif; ?>
    </ul>
    <?php arras_below_sidebar() ?>  
</div><!-- #split sidebar right-->

Open launcher.php (library folder)

Find:

register_sidebar( array(
    'name' => 'Secondary Sidebar #1',
    'before_widget' => '<li id="%1$s" class="widgetcontainer clearfix">',
    'after_widget' => '</li>',
    'before_title' => '<h5 class="widgettitle">',
    'after_title' => '</h5>'
) );

Add the following after it:

register_sidebar( array(
    'name' => 'Split Sidebar Left',
    'before_widget' => '<li id="%1$s" class="widgetcontainer clearfix">',
    'after_widget' => '</li>',
    'before_title' => '<h5 class="widgettitle">',
    'after_title' => '</h5>'
) );
register_sidebar( array(
    'name' => 'Split Sidebar Right',
    'before_widget' => '<li id="%1$s" class="widgetcontainer clearfix">',
    'after_widget' => '</li>',
    'before_title' => '<h5 class="widgettitle">',
    'after_title' => '</h5>'
) );

Open user.css and add this to the file:

#split-left{
max-width:145px;
margin-left:5px;
}

#split-right{
max-width:145px;
margin-right:5px;
}

Customize the css to fit your needs.

I needed to know how to do this at one point. Not knowing PHP made this fun to discover, but hey I got there eventually on my own.

Last edited by dgodfather (2010-10-13 16:56:16)

Re: "Widebar"

Great your trick working fine.

Just one thing, After your are create the new sidebar areas you will need to arrange the widget inside.

Thanks great !

Thumbs up

Re: "Widebar"

I´ve updated to 1.5.1 and WP 3.2 but this instructions doesn´t work, it´s possible to see what happens?

Ваша программа сосет - Whiplash

Re: "Widebar"

dgodfather wrote:

Widgets are relatively easy to register into the theme. Try this out for what you are wanting.

I´ve made this, but only in the new version of theme, seems doesn´t work. Do you know if there´s someting missing?

Ваша программа сосет - Whiplash

Re: "Widebar"

I don't see why the code I provided wouldn't work. Please double check your code for accuracy.

Re: "Widebar"

dgodfather wrote:

I don't see why the code I provided wouldn't work. Please double check your code for accuracy.


dgodfather, I´ll double check, the options work fine, but the page don´t show the widgets I´ve put. After check I reply to you! Thank´s

Ваша программа сосет - Whiplash

Re: "Widebar"

dgodfather wrote:

I don't see why the code I provided wouldn't work. Please double check your code for accuracy.

dgodfather,

Really, my check isn´t so good. I´ve forgot the launcher.php, sorry, my bad

Ваша программа сосет - Whiplash

Re: "Widebar"

I'm glad you were able to find the problem. Enjoy!  smile

Re: "Widebar"

dgodfather wrote:

I'm glad you were able to find the problem. Enjoy!  smile

Thanks!

Ваша программа сосет - Whiplash