Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Three Columns


tadziz
Participant

@tadziz

ok, tell me what i do wrong. in functions.php i add one more block of code and named it sidebar1:

register_sidebars( 1,

array(

‘name’ => ‘sidebar1’,

‘before_widget’ => ‘<div id=”%1$s” class=”widget %2$s”>’,

‘after_widget’ => ‘</div>’,

‘before_title’ => ‘<h3 class=”widgettitle”>’,

‘after_title’ => ‘</h3>’

)

);

i have create sidebar1.php and added this code:

<div id=”sidebar1″>

<div class=”padder”>

<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(“sidebar1”) ) : ?>

<?php endif; ?>

</div><!– .padder –>

</div><!– #sidebar1 –>

in single.php between <?php get_header() ?> and <div id=”content”> i insert

<?php locate_template( array( ‘sidebar1.php’ ), true ) ?>

i can see in control panel widgets serction sidebar1 and i ca drag widgets to it, my page also have left side bar, but in it don’t show inserted widgets. you can see here http://www.shouty.lt

what im doing wrong ?

Skip to toolbar