WordPress.org

Ready to get started?Download WordPress

Forums

How to stretch HOME content to full width (3 posts)

  1. Leah4sci
    Member
    Posted 1 year ago #

    I used wordpress theme extension plugin to add a sidebar to my singe post pages. However, I do not want/have a sidebar for the home page but am at a loss in terms of how to get the content to stretch to the full width of the page
    (there is padding on both the right and left sides)

    I have played around with different aspects of the css style sheet but haven't found the particular snippet of code to change this.

    I would really appreciate any help Home Page

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    To only affect the home page, add this to the bottom of the stylesheet

    .home #content{
    margin: 0;
    }

    and perhaps this one too

    .home .singular #content, .home .left-sidebar.singular #content {
    margin: 0;
    }
  3. D M
    Member
    Posted 1 year ago #

    Best to make a Child Theme, because when the Twenty Eleven theme is automatically updated, as it usually is when WordPress is, everything you have altered will be lost.

    In that Child Theme will go:

    .home #content {
    margin: 0;
    width: 100%;
    }

    This will only alter the width of the content within the default Home Page.
    There may other elements inside the content which may have to be altered in your theme's .css.

Topic Closed

This topic has been closed to new replies.

About this Topic