Remove all sidebars - Can I do this

Hi, I want to remove the sidebar completely. I found that the quickest and simplest way was to change …

public $display = true;


public $display = false;

in the file sidebar.php, is there a problem with doing this?

Cheers, Mark

If you’re never going to need sidebars in your project you could strip the sidebar specific code entirely. Editing the class member variable like you did probably isn’t the best way to disable sidebars while still keeping the code around… I’d suggest adding return false; between these two lines, at the top of the roots_display_sidebar() function in config.php.

Thanks Joel, that makes more sense to me, and one less thing to keep an eye on.