Support » Themes and Templates » discover » [Resolved] Add different BG for each pages.
3 years, 4 months ago
I wish someone would answer our questions about this theme!
Add different BG for each pages.
I would be appreciate if someone answers my questions!
Please do not post duplicate threads – if you need more help that you’re getting on these FREE 100% volunteer forums, consider hiring someone – http://jobs.wordpress.net
And without a link to your site there is no way for anyone to offer help on your second question.
I did not duplicate a threads and secondly I personally try to donate as much as I know to other questions!
Your now modified OP was duplicating your earlier post here
IF you want help with the background question, please post a link to your site.
I see you added it above – you first need remove the code above the DOCTYPE in your header.php file:
No code should ever go above the DOCTYPE.
Why do you have so much code in your child theme style.css file?
For page-specific backgrounds you can use the page specific class from the body tag in the CSS to target only that page – so for example your about page has:
<body class="page page-id-15 page-template-default custom-background">
So the CSS would be:
You might want to validate your pages – it looks like you have some other mark-up errors going on in the header.
I did add anything to my header .. it’s basically theme’s original header and I copied and pasted the code. is that wrong?
This line of code:
shows up at the top of your header.php file – and that’s not in the original file.
Where did that come from?
I’ve got no idea, I can’t see it on my header.php theme child. I guess I am going to ask someone to figure this out.. I don’t wanna keep bugging you.
Try deactivating your plugins- they can sometimes do funny things. It’s actually not visible on your home page so that would suggest something is adding it to some pages…
Ah! I figured it was something on my Page.php so I just deleted <div class=”lastLeft”> cause I’ve got no idea how it did show up on CSS page.php file. does this sounds correct?
Btw thanks for your help! you are awesome.
Yes, that fixed it.
Great. Just a quick question before I annoy you! so those css for For page-specific backgrounds. I should add theme to my page template right or it goes to stylesheet?
thanks a lot!