[Support request] How to change color for a single page?

Home Forums Support [Support request] How to change color for a single page?

Home Forums Support How to change color for a single page?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #890160
    Tilo

    Hello,
    I want change the background color in content area for a single page only. Can you help me?
    Regards, Tilo

    #890330
    David
    Staff
    Customer Support

    Hi there,

    this would require some CSS, for a static page you can use its ID to target that specific page like so:

    .page-id-XX .inside-article {
        background-color: #ffffff;
    }

    Just change the XX to match your page ID.

    #890440
    Tilo

    Hm … does not work. Following CSS I use now. Part 1 works correct, but Part 2 doesnt. Any idea?

    /* Hintergrund Container Starseite */
    body.page-id-20 {
    background-color: #333333;
    }

    /* Hintergrund Content Starseite */
    .page-id-20.inside-article {
    background-color: #333333;
    }

    #890445
    David
    Staff
    Customer Support

    sorry my bad – i made an edit to the CSS above ie. space between the two selectors.

    #890474
    Tilo

    Your are great … I love the CSS … it works.

    #890477
    David
    Staff
    Customer Support

    Glad to be of help.

    #914506
    Tilo

    Hello David,
    … and the text should be white now. Please can you add this to the CSS.
    Regards, Tilo

    #914584
    Leo
    Staff
    Customer Support

    You can add this to your CSS:
    color: #ffffff;

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