Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Support request] content background color

Home Forums Support [Support request] content background color

Home Forums Support content background color

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #382662
    sdanbu

    I know there are global settings to change content background color in the “customize” options.

    Is there a CSS to change content background color in pages individually?

    #382792
    Leo
    Staff
    Customer Support

    If you use Tom’s Simple CSS plugin: https://docs.generatepress.com/article/adding-css/#simple-css

    It gives you a CSS metabox on each page, then you can use this CSS:

    .site-content .inside-article {
        background-color: #898989;
    }
    #382859
    sdanbu

    This helps the inside of the content to have a certain color but it doesn’t make the whole page a certain color.

    I don’t know which part of the screen is named what.

    Is there a way to change the color of the whole page to a certain color?
    I don’t know the names of the different parts of a page even though I’d like to be more specific.

    #382909
    Leo
    Staff
    Customer Support

    Hmm try:

    body {
        background-color: #898989;
    }

    If this doesn’t work can you link me to a page?

    #1292240
    Alfonso

    Hi,

    I need to change background color of some pages/posts, wichs the best option to change it?

    Is only apply css for example:

    .page-id-2 body {
    background-color: #898989;
    }

    .page-id-3 body {
    background-color: #fff;
    }

    Are there better way??

    #1292664
    David
    Staff
    Customer Support

    Hi there,

    if you use the Simple CSS plugin you can add CSS directly in the Post editor specifically for that post or page:

    https://wordpress.org/plugins/simple-css/

    Then its just a case of adding:

    body {
        background-color: #898989;
    }

    Or whatever color you need to each page – no page-id-X required

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.