Jump to content


Photo
- - - - -

How to change header image in php?


This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1 mrwebb310

mrwebb310

    Newbie

  • Members
  • 6 posts

Posted 18 August 2012 - 09:41 AM

Hello, I've been trying to change the header image for one of my pages, substituting a image URL in firebug, than pasting the code in functions.php file, using the customize plugin, but the changes do not appear once I refresh?

#2 batman

batman

    Bat Learning

  • Members

  • 2162 posts

Posted 18 August 2012 - 10:06 AM

Hi mrwebb310
I believe that the code is something like
for example:

Please Login or Register to see this Hidden Content

Can you copy/paste your code to change the header image?

#3 mrwebb310

mrwebb310

    Newbie

  • Members
  • 6 posts

Posted 18 August 2012 - 03:56 PM

I did paste it but when I refreshed the site the changes didn't show.

#4 batman

batman

    Bat Learning

  • Members

  • 2162 posts

Posted 18 August 2012 - 04:17 PM

Hi again I give you an example and ask you for "your code" but.... You have open this

Please Login or Register to see this Hidden Content

You see it, perhaps you need a plugin as said @rangelone

#5 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts

Posted 18 August 2012 - 06:28 PM

mrwebb, are you pasting Batman's code in functions.php or in pagelines-customize/style.css or Dashboard > PageLines > Site Options > Custom Code > CSS Rules. It is a CSS snippet and does not work in functions.php. In fact, the solution isn't a PHP script therefore doesn't belong in functions.php at all. This is a styling issue, therefore it can go into either of the two places I mentioned above.