[resolved] Repeating Background Image (4 posts)

  1. ccgalloway@swbell.net
    Posted 2 years 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
    Forum Moderator
    Posted 2 years ago #

    both sites have a lot of validation errors:

    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:

  3. andrewmills
    Posted 2 years 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; }

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

  4. ccgalloway@swbell.net
    Posted 2 years 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