• Resolved crawlinson

    (@crawlinson)


    Hi, is there an easy(ish) way to disable the sidebar completely on all pages or to exclude a page?

    Thanks for a great theme!

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

    How are you doing today?

    First of you should check if your theme has page templates that have no sidebar. To check that go to Pages -> Add New/Edit and check under Template in Page Attributes box.

    If there is no template for that we can use CSS to hide the sidebar on all pages or on specific page by using page id class in the selector.

    Please post link to your site and/or let me know where exactly you want to remove sidebar.

    Cheers,
    Bojan

    Thread Starter crawlinson

    (@crawlinson)

    Being a code noob I tried hacking away at any reference to the words sidebar and widget but obviously that didn’t work as it just left empty space.

    Thankfully there is indeed a no sidebar template so thank you very much Bojan!

    Have a great day.

    Charlie

    Hey Charlie,

    Being a code noob I tried hacking away at any reference to the words sidebar and widget but obviously that didn’t work as it just left empty space.

    This is probably because your content area has defined width so even after removing sidebar with CSS or by just deleting it somehow from the theme templates would make content stay the same as it’s width is defined so you’d need to change that with CSS as well.

    I’d strongly suggest not editing theme core files unless you’re using a child theme since all changes will be lost first time you update the theme.

    As I already said you can post link to your site and I’ll be happy to help you with some CSS code for this ??

    Cheers,
    Bojan

    Thread Starter crawlinson

    (@crawlinson)

    – duplicate –

    Thread Starter crawlinson

    (@crawlinson)

    I kind of figured that the space was empty due to the content area width being constrained but I was under the impression that it would be many little bits that needed moving. Honestly didn’t consider it would be as simple as editing the width on the CSS.

    Oh and don’t worry, I was smart enough to back everything up before slashing through the core files. I find that trial and error is the best way I learn and so long as I have regular backups in place there is a lot of fun things to experiment with.

    Also thanks for mentioning child sites as I’ve never really understood what they were until now. I just assumed it was something to do with multisites.

    Thanks for the support Bojan. Everything is golden now but I’m sure I’ll be poking you again in the near future about something ??

    Hey Charlie,

    Sure thing, I do help on these forums quite a lot representing my awesome company so I’m pretty sure I’ll see you again ??

    Just for your information child theme allows you to customize original templates, both styles and template files which will be used over the original ones and you’ll have this theme activated as separate theme which pulls styles and functions from the original one if the same are not overridden so updating the original theme effectively doesn’t change anything in the child theme if that makes sense ??

    See you at the forum ??

    Cheers,
    Bojan

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing Sidebar’ is closed to new replies.