• Resolved harlanbern

    (@harlanbern)


    I’m am NOT a coder, just a designer, that is starting to get an idea of how .php works, a little… but can write the code my self, yet. I’m using Twenty Twelve and here is what I’m trying to do:

    1. I want to be able to target a specific page in my clients WP site with CSS so that it only effects one specific page. At this time we are NOT using a blog.

    2. I want to add a background image to the “page” area only (the off white area only, see site: https://sivarods.com/) the overall background is fine, not a problem, since it remains constant throughout the site.

    I’ve spent 4 or 5 days searching for the answer… the “.page-id-# ” answer doesn’t seem to change anything. I’m probably missing something. I think if I understood how setting things up so “.page-id-# works or what I have to do to make that kind of editing work, I probably would never need another question answered. I’ve tried many variations of the following CSS:

    .page-id-51 #page {
    background:000000 url(‘https://sivarods.com/wp-content/uploads/2013/03/lab1.2.jpg’)!important;
    }

    I also tried a test on the R&D page to just change the background color….

    page-id-12 #page.hfeed {
    background-color: #cccccc;
    }

    Didn’t work either.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Kyle

    (@kylesattler86)

    I am not 100% sure which area of the page you are referring to in the question, but I think this plugin would totally rock it out for you: https://www.ads-software.com/extend/plugins/wp-backgrounds-lite/

    If I missed your question, let me know the exact area you are trying to set and I will try again…and maybe with code this time!
    Thanks!

    Thread Starter harlanbern

    (@harlanbern)

    The basic header, contact, footer area. Inside the wrapper.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    How about resolving your syntax error first?

    #main {
    	margin-top: -35px;
    	padding: 0px 15px 0px 100px;

    Missing something?

    Thread Starter harlanbern

    (@harlanbern)

    oooooops! Thanks. So it looks like I got everything right (but “}”} after all.

    Thanks Andrew,
    sorry for the screw-up and wasting your time.

    Harry

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    lol a lot of people don’t realise it but these forum threads act like tutorials for others experiencing the same issue.

    You’re actually contributing towards the WordPress community by posting a problem and solution to that problem.

    Thank you, Harry. Thank you for contributing towards our community ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘add background image to just the page area of just one page’ is closed to new replies.