Widgets questions
-
Hello!
I am using twentyevelen as my theme and im confused to 100% atm.I’m trying to add “widgets/sidebars” to my theme so i can have diffrent sections insted of one large sidebar with all content in i like to have polls and login in one sidebar and poll in another sidebar but i have no clue on how to do this what so ever.
However i have managed to at least got 2 widgets to show up and if you check out my site you can see how it looks like, you will see that this is not really what i want:
http://www.tuxxen.comI have been trying to get this to work now for 4-5 days but i become more and more confused by each day.
my php skills is very poor i only know how to copy/paste.
I guess i need to call for the secound widget/sidebar in my index.php but what would the code be? right now im using:<div id=”secondary” class=”widget-area” role=”complementary”>
<?php if ( ! dynamic_sidebar( ‘sidebar-1’ ) ) : ?><aside id=”archives” class=”widget”>
<h3 class=”widget-title”><?php _e( ‘Archives’, ‘twentyeleven’ ); ?></h3>-
<?php wp_get_archives( array( ‘type’ => ‘monthly’ ) ); ?>
</aside>
<aside id=”meta” class=”widget”>
<h3 class=”widget-title”><?php _e( ‘Meta’, ‘twentyeleven’ ); ?></h3>-
<?php wp_register(); ?>
- <?php wp_loginout(); ?>
<?php wp_meta(); ?>
</aside>
<?php endif; // end sidebar widget area ?>
</div><!– #secondary .widget-area –>This is just so i can see something to show up on my site.
Any tips are more then welcome!
The topic ‘Widgets questions’ is closed to new replies.