• Hi,

    Is there a way to remove the sidebar from specific posts/pages in the Virtue Child theme?

    My client is creating courses using the Zippy Courses plugin. But she doesn’t want her sidebar appearing on the course pages. She would rather have each of these pages be fullwidth.

    I’m not sure if you will be able to access the page link I sent you. This is the CSS I tried using to hide the sidebar on the first of the course pages she has created but it did not work.

    .postid-25332 .kad-sidebar {
    display: none;}

    Would you know the correct CSS to achieve this?

    Thank you ??

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

Viewing 10 replies - 16 through 25 (of 25 total)
  • I think I found a workaround that wont require any additional php. Instead, try adding this CSS to Theme Options> Advanced Settings:

    .zippy .main {
        width: 100%;
    }
    .zippy .kad-sidebar {
        display: none;
    }

    Let me know if that works on the zippy pages to remove the sidebar.

    -Kevin

    Thread Starter Maggie96

    (@maggie96)

    Hi Hannah,

    In the Post Edit page there is nothing called “Post Options” – neither in the Screen options up top or on the side of the post. (I do see “Post Options” listed under Screen Options on her regular blog posts – but nothing else on those pages that says “Post Options”. She doesn’t seem to have the ability to select “fullwidth” on any of her posts. Only on her Pages.)

    In my first question, I posted the CSS I tried to use to hide the sidebar on a particular post – it was this:

    .postid-25332 .kad-sidebar {
    display: none;}

    But that did not hide the sidebar. I wondered if the CSS selector I was using was incorrect or perhaps incomplete? Would you have a different suggestion for CSS that I could try instead?

    Thanks for hanging in here with me – I know this must be frustrating. ??

    Meagan

    Thread Starter Maggie96

    (@maggie96)

    SUCCESS!! Kevin – It worked! Thank you! I never thought of just using “.zippy” Hand-smacks-forehead. Thank you – thank you to both you and Hannah for sticking with me on this one. Phew!

    You two are awesome!!

    Maggie ??

    Thread Starter Maggie96

    (@maggie96)

    OOPS. I wrote too soon.

    It removes the sidebar on ALL of her posts.

    Perhaps this is something that just cannot be achieved.

    Ah that’s lame, I thought it was only assigning that category to the zippy posts, which would make sense. But it assigns it to every page on the site.

    I’ll send this onto the theme developer and he can give us a solution asap.

    -Kevin

    Thread Starter Maggie96

    (@maggie96)

    Ha! I’m going to owe you guys a really, really, really big bottle of Advil!

    ??

    Thank you ~

    Hey,
    Do you have a test login that would allow me to see the courses page?

    I think this would do it but I need to see the page to know for sure:

    .single-course .main {
        width: 100%;
    }
    .single-course .kad-sidebar {
        display: none;
    }

    Ben

    Thread Starter Maggie96

    (@maggie96)

    Hi

    I can send you my login (do you have an email I can send it to?)

    ??

    hannah

    (@hannahritner)

    Hey Maggie,
    You can send it here: [email protected]

    Hannah

    Thread Starter Maggie96

    (@maggie96)

    Hey Hannah,

    It’s coming from my Gmail address. The title is “Information for Zippy Course and Sidebar Question.” Because that’s as creative as my brain could get on one cup of coffee. lol.

    ??

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Hide sidebar on specific posts/pages’ is closed to new replies.