Hi,
I tried to add _child behind the function (also at the 'add action' part), but that doens't work.
I think this is maybe because in the original functions.php there is also an if statement present, so I tried the following:
// Registers footer widget area if (!function_exists('wpbootstrap_register_footer_widgets') && wpbootstrap_get_setting('general_settings', 'display_footer_widgets')) { function wpbootstrap_register_footer_widgets_child() { $widget_class = 'span4'; if (wpbootstrap_get_setting('general_settings', 'display_footer_widgets')) { $widget_class = 'span' . intval(of_get_option('footer_widget_width')); } register_sidebar(array( 'name' => __('Footer widgets area', 'wpbootstrap'), 'id' => 'footer-widgets', 'description' => __('Appears above the footer', 'wpbootstrap'), 'before_widget' => '<section id="%1$s" class="' . $widget_class . ' widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', )); } add_action('widgets_init', 'wpbootstrap_register_footer_widgets_child'); }
But now there is a problem width the wpbootstrap_get_setting part, see this error:
Fatal error: Call to undefined function wpbootstrap_get_setting() in /www/web2738/www.caesarsbeauty.nl/http/wp-content/themes/toolset-bootstrap-child/functions.php on line 19 Call Stack: 0.0001 633240 1. {main}() /www/web2738/www.caesarsbeauty.nl/http/index.php:0 0.0002 638784 2. require('/www/web2738/www.caesarsbeauty.nl/http/wp-blog-header.php') /www/web2738/www.caesarsbeauty.nl/http/index.php:17 0.0004 667424 3. require_once('/www/web2738/www.caesarsbeauty.nl/http/wp-load.php') /www/web2738/www.caesarsbeauty.nl/http/wp-blog-header.php:12 0.0005 688800 4. require_once('/www/web2738/www.caesarsbeauty.nl/http/wp-config.php') /www/web2738/www.caesarsbeauty.nl/http/wp-load.php:29 0.0010 833480 5. require_once('/www/web2738/www.caesarsbeauty.nl/http/wp-settings.php') /www/web2738/www.caesarsbeauty.nl/http/wp-config.php:90 0.4196 70801552 6. include('/www/web2738/www.caesarsbeauty.nl/http/wp-content/themes/toolset-bootstrap-child/functions.php') /www/web2738/www.caesarsbeauty.nl/http/wp-settings.php:291
Thanks.
Willem