• Resolved jvuz

    (@jvuz)


    Hello,

    on one page i want the sidebar not to be shown. Is there a plugin or another way that I can accomplish this?

    Jvuz

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter jvuz

    (@jvuz)

    Thanks, but that shows only how to make the page look. I probably need a statement in the page.php file so say when to use the template you created?

    Jvuz

    I thought you just wanted one page? So just create the page using your newly created template without a sidebar.
    If you follow the instructions, when you create a page there will be a drop down on right sidebar to choose either default template or your template for a page.

    Thread Starter jvuz

    (@jvuz)

    Thanks, no my sidebar is gone…more or less. How can I make that the area that was used for the sidebar, now will be used fot the content? In other words, I want to use the full width of the page.

    Jvuz

    Thread Starter jvuz

    (@jvuz)

    Problem’s soved by changing the css file.

    candlekits

    (@candlekits)

    I’m trying to do the same thing: disable the sidebar on one of the page of the blog.

    What did jvuz did to the css file in order for a specific page not to dosplay the sidebar?

    Would greatly appreciated your help.

    (Irrigation free theme)

    Thank you in advamce!

    Janice

    ambrosite

    (@ambrosite)

    Give me the link to your site and I’ll tell you.

    candlekits

    (@candlekits)

    Hi ambrosite!

    Happy to get a reply. 🙂

    I am creating a membership site which will have an “affiliates details” page that needs to have no side bar otherwise they will not be able to read their reports properly.

    It will be on http://www.philatelicstorytelling.com/members/

    Looking forward to your guiding lights 🙂

    Merci!

    Janice

    ambrosite

    (@ambrosite)

    Hi Janice,

    I just looked at your site. Before I can help you, there is one thing I need you to do. Edit the header.php file in your theme, find the body tag, and add the body_class function, like this:

    <body <?php body_class(); ?>>

    Once that is done, I can give you a CSS rule to hide the sidebar on that one page.

    candlekits

    (@candlekits)

    Ok done 🙂

    ambrosite

    (@ambrosite)

    Here it is. Add it to the bottom of your CSS file.

    body.page-id-15 #sidebar {
    display: none;
    }

    candlekits

    (@candlekits)

    Ok done 🙂

    View Screenshot at http://www.secretstostampcollecting.com/images/modified-css.jpg

    done ok?

    when I navigate to the “Affiliates” page, the sidebar still shows.

    ??

    Thanks!

    Janice

    ambrosite

    (@ambrosite)

    Is this the page you want it gone from? (you said Affiliate Details before)

    http://philatelicstorytelling.com/members/account/affiliates-details/

    Because I just checked that page, and the sidebar is in fact gone.

    Now, if you wanted the Affiliates page (rather than the Affiliates Details page), then you would need this:

    body.page-id-13 #sidebar {
    display: none;
    }

    candlekits

    (@candlekits)

    Eureka! Yabadabadou!

    Yes, indeed that’s the one 🙂

    I got confused…because the Affiliate Details page does not show in the tool bar but does in the sidebar. Gotta figure out where I nested it 😉

    but in any case, I want to thank very much for having solved this problem for which I have spent hours trying to do it by myself!

    I would never have found the solution! merci…

    Until next, take care and all the very best.

    Sincerely

    Janice

    PS: hope I can return the favor one day 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Disable sidebar on one page’ is closed to new replies.