Support » Fixing WordPress » Remove sidebar from specific page

  • Resolved annabelgregory

    (@annabelgregory)



    I have created a custom page template (Contents Page) for this page, and it now has the body class page-template-contents-page
    I did try and add some CSS to the Additional CSS, using some suggestions from the wordpress forums, but without success. As you can see, I need the main content to fill the full width of the screen.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey,

    try adding this custom CSS code within Additional CSS:


    /* next two rules to hide sidebar on – List of Documents – page*/

    .page-id-698 #secondary, .page-id-698 #tertiary {
    display: none;
    }

    .page-id-698 #main {
    max-width: none;
    width: auto;
    }

    • This reply was modified 4 months, 1 week ago by  nagpai.

    That works brilliantly! Thank you so much. Also, I didn’t expect such a quick response.

    I am glad it worked for you! 🙂 Good Luck!

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.