function works in parent, but not in child
Hello,
I am trying to make a menu bar that changes depending on whether the site is being seen by a person who's logged in or logged out. I have found a code snippet that works perfectly fine for me, but only if I put it in the main, parent functions.php. If I put it in the child functions.php it doesn't work. Is there a good, direct way to determine whether the child theme is included or not, cause right now it doesn't seem to be, yet I've copied it from the package and didn't change anything on it.
Regards,
Stenaa
Comments
the error is probably in your code because if you just want to change the functions.php file then everything should work fine. It is only the theme functions inside the functions folder that need to be required_once() in the functions file.
thanks
Which theme do you have activated, you should have the child theme active.
thanks
Notice!
Please attach a link to this forum discussion.
Thanks