Change Customizr Background to Texture or Image


Note :This snippet works only with the Classical style option. The Classical style option can be enabled in Appearance > Customize > Advanced > Theme Style. More about the theme style option here


Last Reviewed: 8-May-15 (3.3.23) 3.1.* 3.2.* 3.3.*

Changing the Background to a different color, texture, pattern or image can be made to various elements: Site, Header, Navbar, Body, Footer.

A useful plugin for generating patterns is:

http://wordpress.org/plugins/subtle-background-patterns

Where to copy/paste this code?
The simplest way is to use the Custom CSS section of the customizer option screen. If you have many customizations to make in CSS and PHP, then we strongly recommend you create a child theme. Everything you need to know about creating a child theme with Customizr here.

 

Background Color/Texture

Body Color:

 

Body Texture:

 

Header Background

Credit: @AndrewNevins/@dglick

 

Add a Gradient Background
– Change red/blue to required colors

Note: Because of the presence of quotes (‘) in the filter property you can’t paste anymore the above CSS code in the Custom CSS box, due to new wordpress theme guidelines. You have to paste it in your child-theme style.css

 

Navbar Background

 

Background Image

Header Background Image

 

Body Background Image:

 

Footer Background Image:

 

Where to copy/paste this code?
The simplest way is to use the Custom CSS section of the customizer option screen. If you have many customizations to make in CSS and PHP, then we strongly recommend you create a child theme. Everything you need to know about creating a child theme with Customizr here.


Related Snippets you may also like


We can help you to implement this snippet

Coding is our job and we know WordPress inside and out. We can help you to customize your website with small chunks of code snippets like this one.

Send us your request and we'll get back to you quickly.



44 thoughts on “Change Customizr Background to Texture or Image

  • lfrohling

    I just found this after I submitted a request 🙁 Oh well. Is there a video I can watch to help me learn and action this quickly pls? Thanks
    BTW your login using the Customizer pro login doesn’t work. Once I login it goes straight to your sales page and doesn’t do squat to this page in terms of logging in.
    Luke

  • Vivian Humphrey

    Hi,
    Is there any way to make the main wrapper transparent or translucent?
    I tried:

    #main-wrapper, .colophon {
    background-color: #transparent;
    }

    But it just makes it white. I would love to be able to see a faint version of the static background picture through the main body.

  • sebastienb

    Hello

    changes worked perfectly for me, thank you.

    A small matter anyway ^^: is it possible to change the background color of the pages and articles without affecting the site background?

    thank you in advance

    seb

  • Nurul Syuhaida Mustafa

    Hi, I have few questions on changing the header (uploading a new picture as header image).

    I already activate the child theme, therefore I have Advanced Option > Custom CSS where I can paste the given code as above.

    I assumed only row 4 to be changed

    from this
    background: url(/wp-content/uploads/NAMEOFFILE.png) repeat 0 0;

    to this
    background: http://hellovitamin.com(/wp-content/uploads/Header_BlogHelloVitamin.png) repeat 0 0;

    _____________________________________________________________________
    /* START OF Change Customizr Background to Texture or Image */

    header.tc-header {

    /* Adjust the Image location ‘wp-content/uploads/NAMEOFFILE.png’ */

    background: http://hellovitamin.com(/wp-content/uploads/Header_BlogHelloVitamin.png)

    repeat 0 0;

    }

    /* END OF Change Customizr Background to Texture or Image

    ______________________________________________________________

    but nothing happens.

    Can anyone help me on this?

    Thank you in advance.

  • Harm

    I tried all supplied examples and they work fine except the navbar background.
    It seems to me that another class should be used. I already tried classes navbar, navbar-inner and navbar-wrapper to no avail to set a background within the navbar. What should the correct code be?

    And BTW the link to the WP plugin for generating patterns is incorrect. Can this be fixed?

    • Harm

      Found the correct code to set the navbar background:

  • Ermir

    I followed your instructions for Header Background Image, but i think my image is bigger than what actually the header is. My image is 5125 * 700. How can i see the whole image?

  • johnymas

    I can’t adjust paddin-right on my page. I used code

    and I got strange effect. Could somebody check my page please and tell me what can I do?

  • ARV

    Hi

    I tried to use this snippet to add a background image across the header, however I don’t see the image. Instead it overwrites the previous color combination I selected. Any help / pointers will be greatly appreciated. Here is the code I’m using:
    header.tc-header {
    background: url(/wp-content/uploads/2015/02/sky_1400_403.jpg) repeat 0 0 ;
    }

  • Angelo

    Hi, i use the css to change the background color but the three circles bullet of the home page arent transparent so i can see the square containing it, it there a way to set the bullet circle background to transparent?

    Thanks

  • edward

    I pasted the change background code to my child theme style.css but it does not work. The style does work because this works;
    body {
    border: 10px solid black!important;
    }

    But his does not work in my child theme css:
    /* Set the color (red) of the body, wrapper, header & footer */
    body, #main-wrapper, header.tc-header, footer#footer .colophon {
    background-color: red;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 10px 10px;
    }

    Help!

  • Thierry

    Hello,

    Yes F5

    with a old version of Customizr, the first snippet in style.css (just pasted it as it is), change the background (all : header, body, footer…)
    and the second snippet don’t work (my NAMEOFILE.png is OK – I can see, alone, with a browser)
    with a news (3.1.17), only header and footer are red ( first snippet) and the second … always…don’t work
    with custom css, the first work immediatly (All: header, body, footer…) aned the second… the texture don’t work (only the wrapper)

    This question goes through the forums!
    ex : http://www.wordpress-fr.net/support/viewtopic.php?id=95418
    I would like to have this kind of result
    how?

    thank

    • Thierry

      argh,
      on the web, custom css work fine
      but in Local with EasyPHP DevServer …color are working but texture don’t work (?)

      sorry

      NB: but style.css / blue.css, etc. No

      • Thierry

        Hello,

        So, with custom css, background works well, I set this:

        Is it possible that the round (270 * 250 images) appear on the textured background without white square?
        (home page and possibly News)

        thank you

  • Nicolas

    Hi Thierry, you are right I’m Gaulois 🙂 but this website in English speaking and those comments are a lot more useful when written in English than in French ! 😀

    About the code : I just tried the first snippet in style.css (just pasted it as it is) and it worked fine.
    You might want to refresh your browser cache? that’s the only issue I can find on top of my head…
    Avec plaisir you are welcome!

  • Thierry

    Puisque l’auteur est français… autant causer gaulois 🙂

    J’essaye le premier exemple ‘body color’, dans blue.css (puisque je suis sous blue) ben… ça fait rien du tout
    (en plus je croyais que style.css prenait le dessus ? mais rien non plus…)

    ? porké ?

    merci

    ===

    I try the first example ‘body color’ in blue.css (I’m in blue) well … dont’ work…
    (style.css? but nothing either …)

  • Philip

    Hi There,

    Firstly, love this theme. thanks you guys very much.

    I want to extend the image slider all the way to the top of the page, so the logo and the manual bar will be floating on top of the image.

    Is there a CSS code for this please?

    Thanks so much

  • Madison

    Hi there,
    I was hoping you could help me with a problem. I am brand new to WordPress and I am using the Customizr theme. I am trying to change the background on my different pages from my menu to have image backgrounds. So I dont want the home page background to change, but just the other pages individually. I’ve tried changing the url to fit this specific page but it isn’t working. Any ideas?

    • Kadon

      I would like to be able to do the same thing. I want to have a custom background on all the pages within my site except the home page. According to the CSS documentation, the .home class is supposed to be used on the home page, but this does not seem to be the case. Does anyone know how I can set a background image on every page of my site except the home page?
      Thanks

        • Kadon

          Nicolas,
          Thank you for the quick response. I thought that was what I should do, but when I have the code:

          body.home {
          background: none;
          }

          It has no effect. While looking at my front page with google chrome dev tools, I do not see the “home” class being used. The class “blog” shows up. My understanding was that .blog should be for Posts, but since the site I’m working on does not currently use posts, I went ahead and used the following, and it worked:

          body.blog {
          background: none;
          }

          This doesn’t seem like it is the way it should work, based on the documentation, but it seems to be working for my site right now.

  • Azeem Haq

    Just wondering if anyone could help me with the following:

    I need one custom background (it will be a logo) that will not scroll and only the text above it from header – footer will float. How can I do that in custom CSS editor?

    Thanks and much appreciated.

    Reg.
    AZEEM

    • Dave Bardell Post author

      Azeem, I’d suggest the Forum would be a better place to get a solution for this, with a much wider audience to help fix problems. And please include a link to your Site.

  • B Wooster

    To answer the question left unanswered above – making the featured pages icons work better with background colors and texture, see this post:

    http://wordpress.org/support/topic/change-background-of-featured-pages-area

    The correct code for a solid color requires using round-div CSS definition for color too:

    If image is used as a background, the hover transition no longer works, but still useful when a texture is desired:

  • Jack Thompson

    Sorry, I must be stupid or something…none of these are working for me when I use the Edit CSS thingy…any help is very appreciated 🙂

    • Dave Bardell Post author

      You can’t be as stupid as me 🙂

      Anyway, I’d suggest the Forum would be a better place to get a solution for this, with a much wider audience to help fix problems. And please include a link to your Site.

  • Duncan Stewart

    Hi there, love this theme. I’m having an issue with adding transparency to the nav bar – it seems to work well in all major browsers but not IE8 – I think perhaps the gradient code in the primary theme is overwhelming the child theme code…

    I have the following child theme css – have tried using semi transparent images rather than RGB opacity (as you’ll see) but still no joy.

    Any help greatly appreciated. Thanks.

      • Jork Tampsom

        Thanks the quick reply! I tried the plugin from the texture homies and my previous precipitations waxed copacetic! Mercy bookoo miss-yer!!!

Comments are closed.