WordPress.org

Support

Support » Themes and Templates » [Theme: Portfolio Press] How to set different background colors

[Theme: Portfolio Press] How to set different background colors

  • I have made a Potfolio Page and set that as my home page. I want that page to have a black background, and I want all other pages (posts, pages, etc.) to have a white background.

    How can I do this – either in the theme editor or with a plugin?

Viewing 1 replies (of 1 total)
  • If your theme does the standard things, your body tag on your home page should have a class of ‘home’ added to it. You can use this as a hook for your CSS:

    body.home {
      background-color: #FFF;
    }

    You should consider doing this in a Child Theme if you haven’t already done so because child themes are the only recommended way of making alterations to themes.

    HTH

    PAE

Viewing 1 replies (of 1 total)
  • The topic ‘[Theme: Portfolio Press] How to set different background colors’ is closed to new replies.
Skip to toolbar