Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24390

    Hi,

    I would like to ask if it’s possible to add background color/image to just a select few pages in my website and not all pages within? If so, HOW WOULD I DO IT? Please help.

    With much appreciation,

    Gurmit

    #123363

    Hi,

    No, not possible with the Theme Options but you can do it on your custom.css or Quick CSS. You need to find the body class id of a specific page. If you are using Chrome, right click then click Inspect Element.

    Then you can use this on your custom.css

    .page-id-734 .main_color {
    background-color: red;
    }

    .page-id-734 .alternate_color {
    background-color: pink;
    }

    The css above will only be applied on the page with the id .page-id-734.

    Regards,

    Ismael

    #123364

    Hi Ismael,

    Thank you for your reply, I tried adding the css code to custom css, changing the page Id but it did not take effect. Is there any other way?

    Regards,

    Gurmit

    #123365

    Hi Gurmit,

    Not that I know of. The CSS way is the best and only way that I know of without doing something with javascript (maybe?).

    Regards,

    Devin

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

The topic ‘background color/image for a particular page (or pages)’ is closed to new replies.