Missing the sidebar in the Twentyseventeen theme? Here is how to get it back

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:

  1. Create a child theme. Check our article on how to create child themes.
  2. In the functions.php file of the child theme add the code below:
  3. Copy the page.php file from the parent theme to the child theme and replace the code at the bottom with the below code:
  4. 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.

  5. To display the sidebar on your home page create a front-page.php file to the child theme and add the below code to it.

    Also, add the code below to the style.css file of the child theme:
  6. Now you have the sidebar on the Twentyseventeen homepage:

Hopefully you'll come back soon!
Get More Stuff
WordPress Multilingual, Performance, SEO, Reviews and HOT Deals. One email per week!
Stay Updated
Give it a try, you can unsubscribe anytime.
Close
GET MORE STUFF
IN YOUR INBOX
WordPress Multilingual, Performance, SEO, Reviews and HOT Deals. One email per week!
Stay Updated
Give it a try, you can unsubscribe anytime.
Black Friday & Cyber Monday WordPress Deals
Save Some Buck!
5b7006b52d820ee6de7e97f5f3f81bf0SSSSSSSSS
Share This

Do you find this interesting?

Share it with your friends!