WordPress.org

Ready to get started?Download WordPress

Forums

comment label and background image (18 posts)

  1. rohitkumar
    Member
    Posted 8 years ago #

    Could someone look here http://www.rohitkumar.org/blog/ and tell me why I dont see a background image? This is the code I use:

    #body {
    background: url("http://rohitkumar.org/images/bg1.gif") repeat;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
    font-size: 10pt;
    margin: 0;
    padding: 0;
    text-align: center; /* IE 5.5 hack */
    }

    ---
    ---

    The label of the forms on the comment page are very small. I tried to change this by adding style="font-size: 10pt;" in comments.php and removing the small tag that wrapped the label. That still doesn't help :(

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

    I see this:
    #body {
    background: #121212;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', sans-serif;
    font-size: 10pt;
    margin: 0;
    padding: 0;
    text-align: center; /* IE 5.5 hack */
    }

    No image...........

  3. rohitkumar
    Member
    Posted 8 years ago #

    oh yeah...im sorry..i was testing if it was a problem with the image or the coding...

  4. rohitkumar
    Member
    Posted 8 years ago #

    *bump*

  5. Kafkaesqui

    Posted 8 years ago #

    The declaration should be:

    body {

    and not:

    #body {

  6. rohitkumar
    Member
    Posted 8 years ago #

    Thank you, Kafkaesqui. Got any ideas about the second problem?

    Edit #1: I just noticed that there a gap between the content and the footer appears once the background appears. Help!

  7. Kafkaesqui

    Posted 8 years ago #

    Look in your comments.php template. You'll find the labels are using the <small> tag.

  8. rohitkumar
    Member
    Posted 8 years ago #

    I changed that already. It now looks like this:

    <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" size="22" tabindex="1" />
    <label for="author" style="font-size: 10pt;">Name <?php if ($req) _e('(required)'); ?></label>

    <input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="22" tabindex="2" />
    <label for="email">Mail (will not be published) <?php if ($req) _e('(required)'); ?></label>

    <input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="22" tabindex="3" />
    <label for="url" style="font-size: 10pt;">Website/Blog</label>

    still no help

  9. rohitkumar
    Member
    Posted 8 years ago #

    *bump*

  10. rohitkumar
    Member
    Posted 8 years ago #

    *bump*

  11. rohitkumar
    Member
    Posted 8 years ago #

    please?

  12. rohitkumar
    Member
    Posted 8 years ago #

    pretty please?

  13. techwench
    Member
    Posted 8 years ago #

    Bumping your thread every few hours is really going to get someone to help you.

    http://wordpress.org/support/topic/28311

  14. rohitkumar
    Member
    Posted 8 years ago #

    I wonder why NM and TG got pissed and left...

  15. rohitkumar
    Member
    Posted 8 years ago #

    I removed the small tage around the label ids. It doesn't work.

    I also notice that when I try to change 'Leave a Reply' to Leave a comment (by changing the text within the h3 tags in comments.php) nothing seems to happen.

    Please help.

  16. Lorelle
    Member
    Posted 8 years ago #

    1. Do not use "pt" in your fonts. Different browsers view these very differently and you will not have much control over that. And avoid using inline styles when possible. Put them in your style sheet.

    2. In your style sheet (after removing the inline style references), add something like this:

    #comments-post #author {font-size:90%; color: red}
    #comments-post #email {font-size:90%; color: blue}
    #comments-post #url {font-size:90%; color: green}

    The different colors will "tell" you if the font has been changed and the style references are right. You might have to play with this a little to get the right order of style references right.

    Once you get the font size set right, and all the other details, get rid of the color references.

    3. I also recommend you spend some time in the WordPress Codex, documentation site, at http://codex.wordpress.org, especially with articles like:

    Finding Your CSS Styles
    WordPress Blog Design and Layout
    Template Files
    Stepping Into Template Tags

    4. A reminder, this forum is run by volunteers, and they are simple but eager folks who want to help. Not everyone knows everything. We like to solve one problem per post, not every problem. We also like to be treated nicely, thanked on occassion, and forgiven for slipping up once in a while.

  17. rohitkumar
    Member
    Posted 8 years ago #

    Thank you very much lorelle :)

    PS: Making those edits (to #comments-post) didn't work. Even changing 'Leave a Reply' in comments.php to something else doesn't help :(

  18. Lorelle
    Member
    Posted 8 years ago #

    Then I recommend that you follow the instructions in http://codex.wordpress.org/CSS_Troubleshooting and track down which "styles" belong to that section and change those.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.