Custom Background (outside content area) on individual pages

Community Forums Forums Design Tips and Tricks Custom Background (outside content area) on individual pages

This topic is: resolved

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  john scheine 1 year, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #47181

    john scheine
    Participant
    Post count: 7

    This is what I am trying to accomplish, without adding any additional Plugins:

    I would like my individual blog post background colors to be different then my page background colors. (We are not talking about the content area, as we have already used css on individual pages to make them black while posts are white background in the content area)

    Here is an example of an individual blog post: http://www.longislandmarketingcompany.com/10-examples-brand-facebook-covers/
    Here is a page example: http://www.longislandmarketingcompany.com/about-long-island-marketing-company/

    This is the css portion of the code used to change the content area background on individual pages. (required additional code added to php) Posts are not controlled by individual coding.

    /* Change Content Area Background Color – Post or Page */

    body.page-id-95 #content {
    background: #000;
    }

    body.page-id-39 #content {
    background: #000;
    }

    Note: This is done for all interior pages (would be redundant to repeat code for all pages)

    How do I accomplish the same thing through css/php but for the page backgrounds on individual pages?
    Thank you for your help. Hopefully I’m being clear on what I am trying to accomplish.

    http://www.longislandmarketingcompany.com/
    #47231

    rfmeier
    Participant
    Post count: 596

    Hello,

    Did you already solve this problem? I see your css is now more abstract for all pages;

    [css]
    body.page #content {
    background: #000;
    }[/css]


    #47240

    john scheine
    Participant
    Post count: 7

    Yes, i have resolved the issue. Someone in the other post helped me out (The post was double posted. Apparently spam filter for studiopress was blocking my posts.) FYI had to use :
    body.page.custom-background {
    background: #000;
    }

    Thanks for reaching out to me.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Custom Background (outside content area) on individual pages’ is closed to new replies.