WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Phebestephen
    Member
    Posted 9 months 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?
    Thanks,
    Phebe

  2. CrouchingBruin
    Member
    Posted 9 months 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
    Member
    Posted 9 months ago #

    This works perfect! Thank you for your help :)

Reply

You must log in to post.

About this Theme

About this Topic