Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Conditionally loading sidebars

Perfect, got it solved using this:

!–
Check to see if this is a single post or entry shown,
and conditionally load first sidebar if it is.

?php if (bp_is_activity_permalink()) { ?
div class=”left-sidebar”
?php locate_template( array( ‘left-sidebar.php’ ), true ) ?
/div
div class=”center-blog”

?php } ?
!– End check to see if this is a single post or entry shown —

(code clamps removed to show the code here.)
And similar for every element needed shown under certain conditions.

Skip to toolbar