Adding Widgets to Toolbox Theme as a child Theme
-
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.
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Adding Widgets to Toolbox Theme as a child Theme’ is closed to new replies.