ThemeShaper Forums » Thematic

[closed]

Can someone please help me with some PHP?

(7 posts)
  • Started 12 years ago by lilyc
  • Latest reply from lilymc
  • This topic is resolved
  1. lilyc
    Member

    I'm trying to have a different background on my home (start) page than on the other pages. I was able to change the repeating body background on that one page by doing a conditional statement in the header. (thanks to google)

    But what I also have is a non-repeating big background on the main wrapper - that needs to be different for the home page, because it has to line up with the repeating background behind it.

    I don't know how to have a different wrapper background just for that one page. I tried guessing at the PHP code, with no look so far.

    If anyone could help at all, I'd really appreciate it!!

    Posted 12 years ago #
  2. Not *exactly* sure what you're trying to do, but why PHP? Why not CSS, and target your body class .home? Something like

    body.home #wrapper {
    background: (whatever);
    }

    Posted 12 years ago #
  3. lilyc
    Member

    Thanks for your reply. The reason I can't do it with the body class is because I'm using 2 backgrounds. One is a repeating (horizontally) background which is on the body tag. And the other is the wrapper background, which goes on top of the other one, and it has to line up with the repeating one, so when the page is zoomed out, it looks seamless.

    And I'm trying to do a smaller version of the same wrapper background on all the pages... and the bigger one on the home page.

    I think if you looked at my site (at its temporary location) you would understand what I'm trying to do. I'm not sure if I want to post the link here though...

    Or I guess I will, and then I can hopefully edit it out later?

    thanks so much!

    Posted 12 years ago #
  4. lilyc
    Member

    As you can see, I was able to change the repeating body background with a conditional statement. So on the start page, the body background is right, but the wrapper background is still the wrong one.

    I found a tutorial about using conditional tags to change styles, (here: http://wphacks.com/wordpress-conditional-tags-hack-theme/) but when I try to change the PHP code in the header, I still can't get it to work right, and I keep messing things up.

    Posted 12 years ago #
  5. lilyc
    Member

    Did I mention that at this point I'm even willing to pay someone for their time... because I just want to get this done. It's not a *huge* deal, but I got a critique of my site on another forum, and a couple people said that the header area of the background was too big, and should be smaller... so I just want it smaller on all the pages except the start page.

    For someone who knows PHP, it probably is a quick easy fix, and as I said, I'd be willing to donate or pay someone through paypal, if that's what it will take to get this mystery solved. heheh

    Posted 12 years ago #
  6. lily, you should mark this topic resolved now. turns out that Solomon's answer was right all along.

    Posted 12 years ago #
  7. lilymc
    Member

    Yes, it's resolved now. Thank you to you both!

    btw - I thought I had tried what Solomon posted before. I must've done something wrong, obviously, but as I told you yesterday helga - I can't believe the solution was so simple all along. Thanks again!

    Posted 12 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.