WPIntell

Source evidence

Exclude sidebar from specific pages

Twenty Eleven Theme Extensions · support · 2013-01-15T06:48:00+00:00

complaintsentiment
mediumseverity
0.75relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 24 rows with source links

20.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
agrolsy unresolved
Hi I’d like to exclude the sidebar from specific pages, but have it on all others. How can that be done? (sorry for reposting, but there was no good answer in the last thread, then the solution would be to remove the theme extension and do a completely new theme) http://wordpress.org/extend/plugins/twenty-eleven-theme-extensions/ 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.

Comments

1 shown
schulte 2013-03-08T17:51:00+00:00

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.