• Anam

    (@laamashdotcom)


    Hi,

    I am currently working on this site: https://www.mobweb.co.uk/ on 2012 child theme.
    Now, I would like to remove sidebar completely from the site and wish to bring full content across the page/post or main page. Does any body help me on this please?

    Regards,

    Laamash

Viewing 6 replies - 1 through 6 (of 6 total)
  • You could copy sidebar.php to your child theme, then remove all the code in that file.

    You could also remove all mentions of it (<?php get_sidebar(); ?>) from index.php, archive.php, single.php etc but that would be more time consuming.

    Just ran into this problem with a 2-column theme too. A quick way to do it is to modify the css so that the sidebar has the property display: none. You might need to adjust the width of the inner content area too. I looked into modifying the html and php too but this was the easy and quick fix that didn’t require rewriting the theme and will be applied to all pages.

    Hi ewherry,

    could you be a bit more precise what to do? I have the same issue with the vortex theme, which I’d like to remove the sidebar from on all pages.

    Kindly
    Hector

    Hi Hector,

    For the Vortex theme:

    One way is to edit sidebar.php and comment/remove everything from the file.

    The next issue is getting the main column to use the full width of the screen.

    Edit the Main Index Template (index.php) and remove the class grid_11 class from this line: <div class="grid_11">

    Cheers
    Dax

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    No point editing the theme’s original files because those changes will be erased when the theme updates.

    Any modification to a file should only be made within a Child Theme.

    Agreed, and the steps I mentioned above would still apply. However, you can either never update your Vortex theme or create a child theme as Andrew pointed out.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to remove sidebar and move content to whole page’ is closed to new replies.