Twenty Thirteen
[resolved] Avoiding footer and sidebar on the home page (3 posts)

  1. Phebestephen
    Posted 2 years ago #

    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?

  2. CrouchingBruin
    Posted 2 years ago #

    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.

  3. Phebestephen
    Posted 2 years ago #

    This works perfect! Thank you for your help :)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic