How to change background color for individual pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4115 Reply
    Al
    Guest

    Hi Ron
    Is there any way that I can designate different page and article background colors for individual pages in my website using the Frontier theme? I want to have say one page with a red background while the others have the customary white background
    Thanks

    #4210
    Ron
    Guest

    Go to the particular page. Right-click the page then select “View Source” / “View Page Source”. Find the <body> tag to get the unique page class.

    Example:

    <body class="page page-id-8 custom-background">
    

    In the example, the unique page class is “page-id-8”

    You’ll then add something like this on the Custom CSS option:

    .page-id-8 article.single-view {background-color: #A3FC90;}
    
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to change background color for individual pages
Your information: