Removing a sidebar from a topic page
-
I know many fellows talked about how to remove a sidebar from a topic page, but they all are too complicated for me. So, I’m wondering whether I can remove a sidebar from a topic page by editing “funtions.php”.
For example, the url of a topic page includes string “topic”, so the following code (not completed yet) will work?function bbPress_sidebar_hide() { $url = $_SERVER['REQUEST_URI']; if(strpos($url,'topic') !== false){ // here is the code for removing or hiding a sidebar which I don't know }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.