wordpress-bootstrap icon indicating copy to clipboard operation
wordpress-bootstrap copied to clipboard

Cannot redeclare bones_custom_admin_footer() => proper Child Theme Support

Open leotulipan opened this issue 12 years ago • 0 comments

functions.php needs to be cleaned up (as per suggestions in http://codex.wordpress.org/Child_Themes)

** How to reproduce the bug:

  1. Make a child theme (style.css with line "Template: wp-bootstrap")
  2. write a NEW functions.php overwriting the functions you need (e.g. bones_register_sidebars, theme_styles, ..)
  3. You get the error "Cannot redeclare"

The subject-line error comes up if you simply copy the original functions.php (which is not the right way to do anyway)

** Action to fix bug:

Some functions are not properly plugabble, like at line 104 it should read

if ( ! function_exists( 'bones_register_sidebars' ) ) { function bones_register_sidebars() {

leotulipan avatar Aug 02 '13 08:08 leotulipan