• Resolved ilonaceline

    (@ilonaceline)


    Hi,

    So for my blog I have created a home page, and I would like to remove the sidebar on that page. I just haven’t been able to figure it out.
    I’ve read topics in which they say to replace a bit of code that looks like this: <?php get_sidebar(); ?>
    But my theme doesn’t have that code anywhere so that doesn’t work for me.
    I also don’t have the option to remove the sidebar in the settings of the page itself.

    Is there any other way for me to remove the sidebar?
    It doesn’t matter if it’s just removed from my homepage or just all pages in general.

    my theme is: https://themehall.com/omega

    Thanks

Viewing 1 replies (of 1 total)
  • Update:You can add custom css rules to your page in your admin page by following: Appearance -> Customize -> CSS (but only if you are a premium member)
    ————-
    I am afraid there is no easy solution. <?php get_sidebar(); ?> is just generating content for you sidebar, the actual sidebar is showing up because of the css rules (for example, if you use “twentyfifteen” theme its in /wp-content/themes/twentyfifteen/style.css). It is adding “::before” to body element (which to my mind is very annoying). So just find “body:before” (there is usually multiple) in your css and remove it.

Viewing 1 replies (of 1 total)

The topic ‘Remove sidebar on static page’ is closed to new replies.