WordPress.org

Support

Support » Themes and Templates » Twenty Thirteen » [Resolved] Avoiding footer and sidebar on the home page

[Resolved] Avoiding footer and sidebar on the home page

  • Hi, I recently activated twenty thirteen theme on my website http://www.phebestephen.com. However I do not want side bar or the footer on my home page.I want it only on my posts page. How do I go ahead with that? Could somebody please help me?
    Thanks,
    Phebe

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can add the following CSS to hide the sidebar and the footer from just the home page:

    body.home #tertiary, body.home footer {
    	display: none;
    }

    You can add the CSS either by creating a child theme or by using JetPack’s Custom CSS field (from the JetPack options screen scroll down until you find Custom CSS and click the Configure button).

    You’ll probably want to increase the width of your main content area, to use the space that’s left by the sidebar. You can add this CSS as well:

    body.home .entry-content {
    	max-width: none;
    	padding-right: 60px;
    }

    Again, this will only affect the content on your home page.

    This works perfect! Thank you for your help 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Avoiding footer and sidebar on the home page’ is closed to new replies.
Skip to toolbar