help changing background on some pages

Viewing 3 posts - 1 through 3 (of 3 total)
  • #5104
    chaeta
    Participant

    Hi Daniel,

    First of all I really like your work and love the minimatica theme.

    I am just learning now WP coding but I still have so much to understand!!
    I have set an image as background from appearance-theme-background and I think it works fine for a section of my site, but I would love plain white background for another part of it.

    I have tried to tweak the stylesheet with things like:

    .post-id-95 body{ background-color: #FFF; }

    or creating a page template White and adding on .css
    body#white { background-color: #FFF; }

    and few other thing which I found on the net but without success.
    Is there a way to overwrite the background image I have set on WP dashboard for some pages of the site?

    Many thanks

    Caterina

    #5107
    jack2104
    Participant

    Hi.

    I had this problem.

    On the page you want to change the bkgrnd for – right click and inspect element (or the same action dependent on you browser) – and in the header find the page id.

    Then use this code:
    body {
    background:#FFF;
    color:#000;
    font-family:”Vegur”, sans-serif;
    font-size:16px;
    line-height:18px;

    }

    .PAGE ID { //is the page id css class
    background:

    Then enter you background style stuff like width etc.
    }

    so for example mine is:
    body {
    background:#FFF;
    color:#000;
    font-family:”Vegur”, sans-serif;
    font-size:16px;
    line-height:18px;

    }

    .home.blog.custom-background {
    background: #000000 url(‘http://jackhatesyouall.com/wordpress/wp-content/themes/minimatica/images/background.png’);
    background-repeat:no-repeat;
    background-position:top center;
    background-attachment: fixed;
    width: 100%;
    height:100%;
    }

    #5114
    chaeta
    Participant

    It worked:)

    Thanks so much!

Viewing 3 posts - 1 through 3 (of 3 total)

Tagged: 

You must be logged in to reply to this topic.