The Twentyseventeen theme has more than 1 million active installs. If you are using the Twentyseventeen WordPress theme and noticed that the sidebar is missing from pages, you are not alone. In this quick tutorial, I will show you how to display the sidebar on all the pages. Follow these steps to add the missing sidebar to the Twentyseventeen theme:
- Create a child theme. Check our article on how to create child themes.
- In the
functions.phpfile of the child theme add the code below:
- Copy the
page.phpfile from the parent theme to the child theme and replace the code at the bottom with the below code:
- To display the sidebar on your home page create a
front-page.phpfile to the child theme and add the below code to it.
Also, add the code below to the
style.cssfile of the child theme:
With that you should be able to see the sidebar on all your pages, except for the home page. No worries, I will show you how to display the sidebar on the home page in the next step.
Now you have the sidebar on the Twentyseventeen homepage: