I know this is my theme’s fault, but because I want to keep it I need to fix it.
I registered another sidebar in my theme and a few days later the following started happening:
-when saving settings, updating posts, etc the page was redirected to blank page, also some visitors were welcome with blank page at the url
-when the issue hasn’t been fixed (obviously), the whole dashboard went blank as if programmed this way by our dear wordpress developers
I am not great at coding my own WP themes, so I followed instructions on how to register a second sidebar, and pasted this code:
if ( function_exists(‘register_sidebars’) )
at the very end of the functions.php file.
Is this a mistake? if yes, where should it be pasted at?
When this theme is removed from my themes, the problem goes away, so the problem has been identified as existing with the theme.
I narrowed down the problem to the functions.php file which caused all the dashboard problems.
So one question remains: where do you include the above code to register the second sidebar so that i don’t have the same problem again?
Can you just put it anywhere in the file or is there a particular spot it belongs to?