WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] change css entry-content only on home page? (3 posts)

  1. applesfaceman
    Member
    Posted 3 years ago #

    As you can see on
    http://ocixx.com/imretarded/

    the home page seems to look fine, its not done, but it looks how i need it to at the moement, but if you click a post title or page, the text is over lapping the sidebar, and thats because i changed the width of the #entry-content div to fit the post thumbnails in, but now its that way on all pages.. how would i target the entry content div width on only one page

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 3 years ago #

    you can view your source code in the browser and look at the body tag

    <body class="home blog windows msie ie7">

    is your home page

    <body class="page page-id-2 page-template page-template-default windows msie ie7">

    is your "sample page"

    so .page .entry-content { wpuld target it on a page

    .page-id-2 .entry-content { would only target that very page

    etc.....

  3. applesfaceman
    Member
    Posted 3 years ago #

    thanks Rev, I left the house needed a break from all the confusion :-D but i managed to find out how to assign a different style sheet to the home page. and i got it working. :) thanks !

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.