Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Cannot redeclare bones_custom_admin_footer() => proper Child Theme Support #147

Open
leotulipan opened this issue Aug 2, 2013 · 0 comments
Labels

Comments

@leotulipan
Copy link

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() {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant