Support » Themes and Templates » Where to edit css for comments page?

  • hello,

    i was able to set my front page just how i want it and my other pages like categories and archive look fine.

    but when i click on the post title or on the comments link, the page gets all messed up. the sidebar is even missing; and this makes me very confused because of how i thought the PHP was put together.

    i tried looking at the comments.php but it doesn’t seem to even call the pieces (header, sidebar, footer, etc). so where is this page put together? it doesn’t seem like index.php is doing it?

    thanks for any help…

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try not to work from Kubrick (or a clone of it) – they “lose” their sidebar by design when in single post view.
    (comments.php is just included in the template that shows the single post.
    In well developed themes that’s the file called single.php.
    See more details: Template Hierarchy

    Edit. Oh, and for finding what to edit – this was very useful for me:

    thanks, rudolf, i didn’t know that about kubrik. should i begin a theme from scratch? is this generally the best way to do it?

    Not necessarily from scratch (there are a lot of routine things in all the themes) – but with one that behaves more like what you’d like.
    Actually, there is an All Sidebar version of K., too, search in the Themes section of the Codex.

    if u still want to go with kubrik, you can still use it with some changes in SINGLE.PHP file in templates.

    u will have to change two things.. first, change the <div id="content" class="widecolumn"> to <div id="content" class="narrowcolumn">

    And secondly, add <?php get_sidebar(); ?> before <?php get_footer(); ?>.

    there, it should work fine now.


    ektz, single.php is exactly what i was looking for and your changes did the trick except i am actually calling the sidebar before the content/posts.

    i am trying to get this site up fairly quickly, but i intend to go through all the documentation when i get a chance. thank you so much for your help.

    am actually calling the sidebar before the content/posts
    For SEO that’s not a wise idea: you should have your content first (probably, that’s one of the reasons, most blogs having their sidebar on the right, after the content). Anyway, I am glad you figured it out.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Where to edit css for comments page?’ is closed to new replies.