function php registering sidebar dashboard goes blank
-
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 developersI am not great at coding my own WP themes, so I followed instructions on how to register a second sidebar, and pasted this code:
<?php
if ( function_exists(‘register_sidebars’) )
register_sidebars(2);
?>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.
Any takers please?
- The topic ‘function php registering sidebar dashboard goes blank’ is closed to new replies.