Hi, hope that someone can give me a hint on how can i add more widgets to a child function.php file?
I used the following code, this works on the parent theme but not in the child theme.
<?php
function sandbox_widgets_init() {
if ( !function_exists('register_sidebars') )
return;
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Home Module A',
'before_widget' => '<div align="center">',
'after_widget' => '</div>',
'before_title' => '<h2 class="txtalt">',
'after_title' => '</h2>',
));
}
?>
Thanks in advance for your effort and time.