[Theme: Twenty Twelve] Custom widget area
-
Hi everyone,
I made a custom widget area (to display archive posts) to go beneath the blog posts on my site – here
This is the code I put into functions.php –
register_sidebar( array( 'name' => 'Archives Widget', 'id' => 'page-widget-area', 'description' => 'Widget Description Goes Here', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ) );
and then I pasted this into index.php –
<div id="page-widget-area"> <?php dynamic_sidebar( 'Archives Widget' ); ?> </div>
My problem is: the widget appears, but not correctly. What am I doing wrong?
As ever, would really appreicate any help. You are all life savers ??
- The topic ‘[Theme: Twenty Twelve] Custom widget area’ is closed to new replies.