Remove sidebar from certain pages

  • Author
    Posts
  • #140549

    exkeyes
    Member

    Hello :)

    I am wondering if it’s possible to hide all my widgets/sidebar on certain pages… Please let me know :)

    The blog I need help with is emmaxkeyes.com.

    #140675

    anhtnt
    Theme Author

    Hi,

    To hide sidebar from some pages, you need to find page ID first (See this guide to know how to find page ID: https://www.competethemes.com/blog/find-page-id/. PS you need to go to WP Admin (the last item in the Menu) to do that).

    Then go to Customize > CSS and add the following CSS:

    .page-id-7 .site-content .widget-area {
      display: none;
    }
    .page-id-7 .site-content .content-area {
      width: 100%;
    }

    Replace “7” with your page ID. And repeat the code for other pages.

The topic ‘Remove sidebar from certain pages’ is closed to new replies.