WordPress.org

Forums

How do I make the comments page of a post different from the index? (5 posts)

  1. thetwilitekid
    Member
    Posted 10 years ago #

    Hey all,
    Thanks in advance for the help you'll probably be able to offer me for such a simple question! :)

    Anyways, how do I make the comments page of a post different from the index?

    Reason being:
    My index: http://www.pixelimplosion.com
    A post: http://www.pixelimplosion.com/index.php?p=11

    As you can see, the sidebar is on the comments page as well (which I don't want). So, how would I go about implementing a comments/individual post page that doesn't contain that sidebar?

    Thanks!

  2. skippy
    Member
    Posted 10 years ago #

    http://codex.wordpress.org/Template_Hierarchy
    http://codex.wordpress.org/Using_Themes#Theme_Files

    Create a file called single.php in your theme directory, and WordPress will use that for displaying a single post.

    Take a look at the default theme shipped with WordPress for an example.

  3. thetwilitekid
    Member
    Posted 10 years ago #

    Thanks a ton!

  4. SydLexia
    Member
    Posted 10 years ago #

    Once the sidebar is removed, how do I change the css for the single.php page? Does WordPress recognize a style.css file as well?

  5. Jinsan
    Member
    Posted 10 years ago #

    it uses the same css as that of your index.php what you can do is create a new set of classes and ids for single pages, and call those within the single.php file

    so if it says entry id= you can change this to entrysingle id = and call this in your css. Not sure if there is a better way, but I find having one stylesheet for everything works best.

Topic Closed

This topic has been closed to new replies.

About this Topic