• 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: https://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:
    https://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.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter bk

    (@bk)

    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.

    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!

    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? ??

    Thread Starter bk

    (@bk)

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

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Problems Problems. Help Needed Please.’ is closed to new replies.