Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
632 views
in Q2A Core by
Hi,
 
I have a problem with overriding the sidepanel() function in custom theme for v1.6.1. Namely, after I copy the function sidepanel() from /qa-include/qa-theme-base.php (without any modification), I get the following error on site reload:
 
"Fatal error: Cannot redeclare qa_html_theme::sidepanel() in /xxx/qa-theme/customtheme/qa-theme.php on line xxx"
 
All other function work except this one. Has anyone experienced similar issue?
Q2A version: 1.6.1

1 Answer

0 votes
by
selected by
 
Best answer
If You are using the snow theme, the reason could be, that the sidepanel function is already included in the theme.php...

You can not mention it a second time in theme.php, but modify the first one.
...