Support » Plugin: Twenty Eleven Theme Extensions » Exclude sidebar from specific pages

Viewing 1 replies (of 1 total)
  • For category pages, add the following to line 90 on moztheme2011admin.php:

    $row .= $this->checkBox('sidebar-category', 'Enable the widget sidebar on category pages').$this->crlf();

    and adjust hasSidebar() of moztheme2011.php on line 64 to reflect:

    if ($this->isOptionSet('sidebar-post') || $this->isOptionSet('sidebar-page') || $this->isOptionSet('sidebar-category')) {

    and line 91:

    return $this->isOptionSet('sidebar-post') && is_single() || $this->isOptionSet('sidebar-page') && is_page() || $this->isOptionSet('sidebar-category') && is_category();

    Now this doesn’t address specific pages, but does get category pages into the conversation.

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude sidebar from specific pages’ is closed to new replies.