Skip to:

Conditionally loading sidebars

  • Hi.
    I’m working on customizing and buddypressifying :p a theme for a site I’m working on, and I need to display the sidebars on the page when the users click “View” on a single activity update in the stream. That takes them to that single activity, and no sidebars are loaded in this case.
    I need a little help with this.

    I’m guessing if I add the sidebars to the entry.php uncontitionally they’ll probably show up everywhere else where entries are shown as well, making sidebars show up twice instead of once in most cases, and in strange places.
    I need to load them only when viewing a single entry directly, by checking if sidebars are loaded, and if not: then load them.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditionally loading sidebars’ is closed to new replies.
Skip to toolbar