Support » Themes and Templates » 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 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.

    Any takers please?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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?



    If you find out please let me know, I have the exact problem



    Check your functions.php file.

    Apart from the one you posted at the end is there already a register_sidebar() function there. If so, what does it say?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘function php registering sidebar dashboard goes blank’ is closed to new replies.