Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Can someone please help me with some PHP? « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

Can someone please help me with some PHP?

(7 posts)
  • Started 4 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 4 years ago #

  2. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    Solomon

    Member

    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 4 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 4 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 4 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 4 years ago #

  6. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    helgatheviking

    Moderator

    lily, you should mark this topic resolved now. turns out that Solomon's answer was right all along.

    Posted 4 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 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183