add new widget area
-
Hello,
I took a tutorial to add a widget area of my own to a template. In a basic theme it worked right away. But in the Aplite Theme I immediately get a blank page when I try to add the code, and also, I don’t recognize the code and the place where to put it.In functions.php I add the following code:
register_sidebar( array (
‘name’ =>’Eigen Widget Gebied’,
‘id’ =>’eigen_widget_gebied’,
‘before_widget’ =>'<aside>’,
‘after_widget’ =>'</aside>’,
‘before_title’ =>'<h3 class=”widget_title”>’,
‘after_title’ =>'</h3>’,
));
}add_action (‘widget_init’, aplite_widgets_init’)
In header.php:
<? php if (dynamic_sidebar (‘eigen_widget_gebied’) ) :else :endif; ?>What is going wrong here? How does this work?
Greetz,
Marianne
- The topic ‘add new widget area’ is closed to new replies.