• Hi. I am trying to change the background colour of the content part of the above theme using css. On some pages it works perfectly, except for the content heading. But on other pages there are strips – see

    https://phoebetaylorthorpe.co.uk/?page_id=54

    for an example. Some of the content may have used word, but some of it I have imput separately using the wp editor, and the results are the same.

    Also, is there a way to change the background of the content heading similarly without it changing on the front (blog) page?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Apply the colour to these selectors instead:

    .site-content .entry-content,
    .site-content .entry-summary,
    .page-content

    Thread Starter Silvamayflower

    (@silvamayflower)

    Thank you Andrew, that’s great – gets rid of the white stripes. Wonderful. But I still have the problem that the entry-header is either white on the posts/pages, or if I add .entry-header to the change of colour, the backgrounds to the titles on the front page also change, and look really horrid, not to mention that the entry header writing on the front page is white and so doesn’t show up. I know there’s a way to add code to just one page, but I don’t know how to do this, or even if that’s how to cure this problem in this theme.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Are you trying to target this one page or, this template?

    Thread Starter Silvamayflower

    (@silvamayflower)

    I want to change the content header background on all pages and posts to match the content background, but I want the front page (which is set up blocg-style) to retain the text and background colour under the grid pictures (currently a darkish green background with (I think) white writing.)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What if you take away this style:

    .content-area,
    .site-content,
    .has-post-thumbnail .entry-content,
    .entry-meta,
    p {
        background: #F2e4d5 !important;
    }

    ?

    Thread Starter Silvamayflower

    (@silvamayflower)

    No I tried that one – that leaves the pages/posts surrounded by white. I think we can live with the white labels for the time being, until I can work out how to apply changes to the front page without affecting the other pages. Thanks for your help, and for trying with this one, anyway. It’s a great improvement on what I started with.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Okay, so to target the front page look at the unique class generated in the “<body>” element. Try “home“.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Changing the content background in wp 2014 theme’ is closed to new replies.