WordPress.org

Support

Support » Themes and Templates » discover » [Resolved] Add different BG for each pages.

[Resolved] Add different BG for each pages.

Viewing 12 replies - 1 through 12 (of 12 total)
  • WPyogi

    @wpyogi

    Forum Moderator

    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!

    WPyogi

    @wpyogi

    Forum Moderator

    Your now modified OP was duplicating your earlier post here
    http://wordpress.org/support/topic/add-link-rather-than-text-for-boxes?replies=1

    IF you want help with the background question, please post a link to your site.

    WPyogi

    @wpyogi

    Forum Moderator

    I see you added it above – you first need remove the code above the DOCTYPE in your header.php file:

    <div class="lastLeft">
    
    <!doctype html>

    No code should ever go above the DOCTYPE.

    Why do you have so much code in your child theme style.css file?

    WPyogi

    @wpyogi

    Forum Moderator

    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:

    body.page-id-15 {
       background: #xxxxxx;
    }

    You might want to validate your pages – it looks like you have some other mark-up errors going on in the header.

    http://validator.w3.org/

    I did add anything to my header .. it’s basically theme’s original header and I copied and pasted the code. is that wrong?

    WPyogi

    @wpyogi

    Forum Moderator

    This line of code:

    <div class="lastLeft">

    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.

    WPyogi

    @wpyogi

    Forum Moderator

    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.

    WPyogi

    @wpyogi

    Forum Moderator

    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!

    you rock!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Resolved] Add different BG for each pages.’ is closed to new replies.
Skip to toolbar