WordPress.org

Ready to get started?Download WordPress

Forums

discover
[resolved] Add different BG for each pages. (13 posts)

  1. Miss Incredibly Smart
    Member
    Posted 8 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!

    http://www.penmenworld.com/

  2. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    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.

  3. Miss Incredibly Smart
    Member
    Posted 8 months ago #

    I did not duplicate a threads and secondly I personally try to donate as much as I know to other questions!

  4. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    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.

  5. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    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?

  6. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    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/

  7. Miss Incredibly Smart
    Member
    Posted 8 months ago #

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

  8. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    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?

  9. Miss Incredibly Smart
    Member
    Posted 8 months ago #

    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.

  10. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    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...

  11. Miss Incredibly Smart
    Member
    Posted 8 months ago #

    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.

  12. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    Yes, that fixed it.

  13. Miss Incredibly Smart
    Member
    Posted 8 months ago #

    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!

Reply

You must log in to post.

About this Theme

About this Topic