Support » Theme: Twenty Fourteen » Changing white background for main text

  • margmacd

    (@margmacd)


    Hello

    I have used the following code under the Additional CSS section of the Appearance menu to change the background colour for my WordPress pages from the original default colour of white to an off-white colour:

    .site {
    background-color: #EFEFFB;
    max-width: 1260px;
    position: relative;
    } .

    On completing this step, I discovered that for the main text on each page, there still remained a white background and the above code had only changed the colour of a boundary region around this white background. I would be grateful for advice on how to alter the background within the boundary region in order that the main text is set in a non-white background.

    Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    You could try this one :

    .site-content .entry-header,
    .site-content .entry-content,
    .site-content .entry-summary,
    .site-content .entry-meta,
    .page-content, 
    .main-content {
    	background-color: #EFEFFB;
    }

    Many thanks, Etienne, This definitely worked. However, I now see the aesthetic value of the colour contrast I had described in my last message. What I really want to do, therefore, is keep the different colour for the boundary region but change the white background within the boundary region for the text to an off-white shade. Can you suggest, please, how this might be achieved?

    Hi margmacd,
    What about the following code in your CSS.

    #primary {
    	background: #f0f0f0;
    }
    

    Regards
    Etienne

    Hi Etienne

    Thanks for the suggestion. This code controls the shade of the boundary region around the white background to the main body of text, not the white background to the text itself (which is surrounded by this boundary region and which I wish to change).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing white background for main text’ is closed to new replies.