Closed strarsis closed 2 years ago
hey @strarsis this is intentional - the sidebar is included for posts out of the box but not for pages
if you'd like to add support for the sidebar on pages, add it directly to your theme w/ whatever conditionals etc. you'd need
Terms
Description
What's wrong?
The primary sidebar isn't rendered on any page. Sidebar section part (currently in
index.blade.php
):What have you tried?
wp acorn optimize:clear
).What insights have you gained?
The sidebar section never appears in the markup. Moving the sidebar section part from
index.blade.php
over topage.blade.php
finally resulted in it being shown.Possible solutions
Move the sidebar section part from
index.blade.php
topage.blade.php
would make the sidebar appear on all pages. However, I am not sure whether this fixes an issue I introduced into the theme by modifying it or by some strange Gutenberg/widget constellation.Temporary workarounds
Move sidebar section part from
index.blade.php
over topage.blade.php
.Steps To Reproduce
composer create-project roots/sage sage10 dev-main
).yarn install
;composer install
if necessary).yarn build
).Expected Behavior
Primary sidebar is shown on all pages.
Actual Behavior
Primary sidebar isn't shown on any page.
Relevant Log Output
No response
Versions
Remove
config
andbootstrap
directories (#2839)