Forums

[Theme: Portfolio Press] How to set different background colors (2 posts)

  1. adamblumenthal
    Member
    Posted 4 months ago #

    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?

  2. peredur
    Member
    Posted 4 months ago #

    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

Reply

You must log in to post.

About this Topic