I tried to name my post 'register_sidebar() to use <h3> instead of <h2>' But apparently there is a very small maximum title length..
In order to make a theme work with widgets you basically need two things.
Your functions.php needs this code
and your sidebar.php needs
I've added both of those things and they work. My theme works with widgets. By default each title is wrapped with <h2> </h2> heading
I want my titles to be wrapped <h3> </h3>
So I made my functions.php look like
<? register_sidebar(array( 'name' => __( 'right-sidebar' ), 'id' => 'right-sidebar', 'description' => __( 'main sidebar' ), 'before_title' => '<h3>', 'after_title' => '</h3>' )); ?>
and I made my sidebar.php look like
<?php if ( !dynamic_sidebar('right-sidebar') ) : ?> <?php endif; ?>
But my sidebar is not showing up. What could my problem be? Any advice on accomplishing on what I want to do?