WordPress.org

Support

Support » Themes and Templates » not sure on how to edit a certain page’s theme..

not sure on how to edit a certain page’s theme..

  • hey all, thx for help in advance.

    I’m working on http://cammog91.ca.funpic.org/wordpress/ right now and while I have the front page worked out perfectly for myself, when you click on a comment or permalink to any article, it goes screwy.. what part of the template is that? I cant seem to find what to edit for that page.. The comment part seems to just be the bottom and i just dont know where i can add a container for the whole thing..

Viewing 8 replies - 1 through 8 (of 8 total)
  • Did you style the comments template (and archive template, if the theme has one) files? I bet that’s it. (Look under Manage, Presentation, then choose the theme you want to edit.)

    Update: I see that when you click to leave a comment, that page is missing its Container and Main divisions. That is the problem. You just need to root around in your templates and figure out how to be sure that the main page structure is included in the comments.

    Why don’t you go to your WP Dashboard and list the templates you see under Presentation? Then we can figure out which one is probably the one that needs to be edited.

    Nice design, BTW!

    ‘camerons’ theme files

    * Stylesheet
    * 404 Template
    * Archive Template
    * Archives
    * Comments Template
    * Popup Comments Template
    * Footer Template
    * Header Template
    * Main Template
    * Links
    * Page Template
    * Search Template
    * searchform.php
    * Sidebar Template

    I think it is comments template, although, can I make the comment box in its own window.. like just discussion, no real layout.. how do i use this “popup comments template”?

    I know its missing the container divs.. but my problem is I have no idea where to put them in for those specific permalink/commenting pages.. il try a few things and then check back.

    One last thing, glad to hear you like my design!

    Moderator James Huff

    @macmanx

    can I make the comment box in its own window.. like just discussion, no real layout.. how do i use this “popup comments template”?

    http://codex.wordpress.org/FAQ_Working_with_WordPress#Can_I_have_popup_comments.3F

    http://codex.wordpress.org/Template_Tags/comments_popup_script

    Thank you, you guys are great. Il be messin with this feature for a while.

    Cam, I think you need to muck around in the Archive Tempate (not Archives). Because when you click on the link to post a comment, it takes you to a single page where the article (and any comments) is displayed. I think this is the Archive Template. Try there. And be sure to return here and post your solution so others can benefit from the head-scratching!

    Good luck.

    However, thats not the case anymore becuase I made it so it uses the pop-up template, not the permalink page thing.

    Il post what I have done, when im done.

    First off, thank you everyone for your help so far. I’m now working on my popup comments template.

    Quick question.

    I want to be able to color every other comment box color A and all the others color B, but I cant seem to do that. Instead of every-other one it seems to be simply counting so you can apply special styles to special comments. This is the code for each comment.

    <ul id=”comment_list”>

    — start loop —

    <li id=”comment-<?php comment_ID() ?>”>

    — repeat —

    So how do I change this to say, the box’s id is either comment-even, or comment-odd instead?

    Change
    <li id="comment-<?php comment_ID() ?>">

    to
    <li id="comment-<?php comment_ID() ?>" class="<?php if ((get_comment_ID()%2)==0){echo "alt";}?>">

    Then add a style for the alt class in your style.css file e.g.
    .alt{
    background-color:#ffffff;
    }

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘not sure on how to edit a certain page’s theme..’ is closed to new replies.
Skip to toolbar