• Resolved hop3y

    (@hop3y)


    Good afternoon –

    What CSS would I need to use to input to remove the sidebar from posts and pages completely and only have it on the home page?

    Thanks

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello hop3y,

    Add below css code into your current active child theme’s style.css file or you can add additional css option in theme customizer

    .home aside.mh-widget-col-1.mh-sidebar {
        display: block;
    }
    
    aside.mh-widget-col-1.mh-sidebar {
        display: none;
    }

    Hope this will helps you.

    Thanks.

    Thread Starter hop3y

    (@hop3y)

    Thank you – I’ve now done this. Is there any way to put the content central in post view? (IE fill in where the sidebar used to be?)

    Hi Hop3y,

    please ignore the code above. Just use:

    .single .mh-sidebar, .page-template-default .mh-sidebar { display: none; }
    .single .mh-content, .page-template-default .mh-content { width: 100% !important; }

    You can add CSS code in your WordPress dashboard under Appearance => Customize => Additional CSS or by using plugins for adding code snippets.

    For CSS customizations, you can always use your browsers inspection tool to inspect the elements on your site and then use that information to add your own code modifications.

    Thread Starter hop3y

    (@hop3y)

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove sidebar from posts/pages’ is closed to new replies.