Jump to content
Sign in to follow this  
mrwebb310

How to change header image in php?

Recommended Posts

mrwebb310    0
mrwebb310

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?

Share this post


Link to post
Share on other sites
batman    389
batman

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

.page-id-3 #branding .content {background-image: url('http://BACKGROUNDIMAGEURLHERE')}

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


Life is too short to remove USB safely ...

Share this post


Link to post
Share on other sites
mrwebb310    0
mrwebb310

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

Share this post


Link to post
Share on other sites
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×