WordPress.org

Ready to get started?Download WordPress

Forums

Problems Problems. Help Needed Please. (20 posts)

  1. bk
    Member
    Posted 8 years ago #

    Well, at the moment... my site is having two problems. I don't know how to fix them.

    First one: How do I remove the " This entry was posted on Tuesday, May 17th, 2005..." box from the comment page? Check here: http://www.xeenat.com/wordpress/?p=6#comments

    Second one: Whenever I search something, I want to get rid off the message I get. It messed up the sidebar. Please check here:
    http://www.xeenat.com/wordpress/index.php?s=blah

    I'd like to thank you guys in advance for help. It will be greatly appreciated by this guy who is new to WordPress and PHP.

  2. moshu
    Member
    Posted 8 years ago #

    1. It should be in your single.php or comments.php
    2. It should be in the sidebar.php (look for if search...)

  3. bk
    Member
    Posted 8 years ago #

    1. Got it removed from single.php, but there's another line there now which starts like this : " You can leave a response, or trackback from your own site."

    If I try to get rid of it, I get an error and the page won't display. What do I do now?

    2. Fixed. Thanks. :)

  4. bk
    Member
    Posted 8 years ago #

    Also by chance, do you know how to use pixel fonts on a website? I know images is one way. Is there any other way? Thanks.

  5. bk
    Member
    Posted 8 years ago #

    *bumps*

    :o

  6. moshu
    Member
    Posted 8 years ago #

    What do you mean "use pixel fonts"? You mean how to define the font size on your site/page?
    Everything is in the style.css file. Maybe it's not px but em or something else.

  7. bk
    Member
    Posted 8 years ago #

    Okay, forget about the pixel font thing. :)

    But do you know how I can remove this line from the comment page: " You can leave a response, or trackback from your own site."

    If I try to get rid of it in the single.php file, I get an error and the page won't display. :S

    Thank you.

  8. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Try removing that sentence, but LEAVE the .
    and see what happens ?

  9. bk
    Member
    Posted 8 years ago #

    Thank you podz. I've got rid of that sentence, but do you know how to remove that grey bar (if not, then I'll just leave it)? And how do I change the color of the boxes on the comment page? I'm modding the Kubrick template just to let you know.

    Thank you podz. :)

  10. jetshack
    Member
    Posted 8 years ago #

    that's going to be located somewhere in the css i bet.

  11. bk
    Member
    Posted 8 years ago #

    I'll try looking for it, but if anybody can tell me where it is, it'll be easier. :)

    Thank you.

  12. moshu
    Member
    Posted 8 years ago #

    Try removing this:

    <p class="postmetadata alt">
    <small>
    </small>
    </p>

  13. bk
    Member
    Posted 8 years ago #

    Thanks Moshu, it's gone now. :)

  14. bk
    Member
    Posted 8 years ago #

    About the comment boxes on the comment page : http://www.xeenat.com/wordpress/?p=6#comment-4

    I tried to change the colors of the boxes, but then all of them become one color for some reason. Is there anyway I can change the color of the grey boxes? And when someone leaves the next comment, leave them white?

  15. bk
    Member
    Posted 8 years ago #

    *bumps*

  16. mumkin
    Member
    Posted 8 years ago #

    Looks like you've got it handled, yes?

  17. bk
    Member
    Posted 8 years ago #

    Not really. I can't change the color of the grey boxes. If I do, all of them become the same color. See, I want it this way. First comment has white background, second comment has any color I want. And so on... see the pattern?

    Thank you.

  18. mumkin
    Member
    Posted 8 years ago #

    OK so, taking this as an example page. Look at the source of the page as rendered by your browser and you'll see that Bilal's first comment, on grey, has a class of "alt" while Habz' comment is on white, and its class is ""

    Assigning these classes to comments is handed in comments.php by this bit of code:

    <?php
    if ('alt' == $oddcomment) $oddcomment = '';
    else $oddcomment = 'alt';
    ?>

    Actually, instead of my trying to explain it all, I think you're better off reading this tutorial on working with $oddcomment from ColdForged, which should empower you to do everything you want to with your comment display and more.

    Good Luck!

  19. moshu
    Member
    Posted 8 years ago #

    mumkin is overcomplicating it :)
    But s/he almost gave you the solution by saying the "grey comments" are in a class called alt
    So, all you have to do now is to find
    .alt {
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    }

    in your stylesheet and change the bgcolor. Don't you love the simplicity of CSS? ;)

  20. bk
    Member
    Posted 8 years ago #

    Thank, very, very much to both of you.. mumkin and moshu! :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.