WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Repeating Background Image (4 posts)

  1. ccgalloway@swbell.net
    Member
    Posted 1 year ago #

    I have developed 2 almost identical sites (dfwpremiumhomes.com and smartdfwrealty.com). I used twentyten and created a child theme for each. For some reason, the background on the body of smartdfwrealty.com works as it is supposed to (stretches all the way from top to bottom and repeats across horizontally. For some reason, the same image on dfwpremiumhomes.com, does not go down past the header. The line in my style.css is: body { color:#333; background:#f0ebd9 url(http://www.dfwpremiumhomes.com/images/i-mainbg.jpg) top repeat-x; }. The only files in my child theme are style.css, header.php, footer.php, loop.php and index.php. I tried replacing each file, one by one, with the corresponding file in my child theme from smartdfwrealty.com, but to no avail. I even thought I might have accidentally copied over the original style.css file in twentyten, and went in and replaced it, as well. I am pulling my hair out...

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    both sites have a lot of validation errors:
    http://validator.w3.org/check?uri=dfwpremiumhomes.com&charset=%28detect+automatically%29&doctype=Inline&group=0
    http://validator.w3.org/check?uri=smartdfwrealty.com&charset=%28detect+automatically%29&doctype=Inline&group=0

    as long as these errors exist, it is not really worthwhile to look for any causes of the background problem.

    start by fixing the errors:
    http://codex.wordpress.org/Validating_a_Website

  3. andrewmills
    Member
    Posted 1 year ago #

    You've got an extra bit of styling code in the head of your http://dfwpremiumhomes.com/ site that's overriding the desired background color.

    It's approximately line 29, and reads as follows:

    <style type="text/css" id="custom-background-css">
    body.custom-background { background-color: #f1f1f1; }
    </style>

    If you comment out/remove that bit, your background color should revert to #f0ebd9.

  4. ccgalloway@swbell.net
    Member
    Posted 1 year ago #

    Thanx, Andrew! That fixed the problem. I saw that a background color was set in the Appearance/Background in the dashboard. I guess that was a carryover from another theme I was using, but the other site had the same background color set in it, as well, and it didn't affect that one. Hmmm...

    And thanx for the advice, alcymyth... I'm a relative newbie to WordPress and I am not a programmer. I will check it out!

Topic Closed

This topic has been closed to new replies.

About this Topic