Customizing home page

  • Unknown's avatar

    Hello,

    I have customized a container on my site

    }
    .page  .container {
    	width: 100%;
    	padding-left: 0;
    	padding-right: 0;
    }

    However,

    I want to change this for just one page, the home page. Don’t I need to used the page id for the page like this?

    }
    .page-id-34 .page  .container {
    	width: 75%;
    	padding-left: 0;
    	padding-right: 0;
    }

    I tried it and it didn’t work.

    Help please

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi there, you were very, very close. .page should be #page since that is an ID, so if you change your selector to this
    .page-id-34 #page .container
    you should be good to go.

  • Unknown's avatar

    Great. Thanks! Learning learning :). I appreciate your help.

  • The topic ‘Customizing home page’ is closed to new replies.