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.
After frequent requests in the Forum, I’m adding to this early Snippet with details on how to adjust the background color of every item in Customizr. I’ll use ‘pink’ to emphasise what you will need to change when you use the code (unless you’re a lady who loves pink!)
This focuses on solid colors only
Step 1 – Main body/containers
/* START OF Adjust Sitewide Background & Text Color/Size */ /* Change the (pink) body background */ body { background: none repeat scroll 0 0 pink; /* Change pink */ color: #5A5A5A; /* Default Text Color */ padding-bottom: 0px; } /* Change the central wrapper background */ #main-wrapper { margin-top: 0px ; margin-bottom: 0px ; background-color: pink ; /* Change pink */ border: 2px solid red ; /* Delete if no border needed */ } .container[role="main"] { background-color: pink ; /* Change pink */ } /* END OF Adjust Sitewide Background & Text Color/Size */
Step 2 – Header/Navbar
/* START OF Adjust Sitewide Background & Text Color/Size */ /* Change the Header background */ header.tc-header, .navbar-wrapper, .sticky-enabled header.tc-header { background-color: pink; /* Change pink */ } /* Adjust the Header */ header.tc-header { /* Adjust the (red) top border style/color */ border-top: 10px solid red; /* Adjust the (green) bottom border style/color */ border-bottom: 10px solid green; } /* Change the Navbar background */ .navbar-inner { background-color: pink; /* Change pink */ background-image: linear-gradient(to bottom, pink, pink); /* Change pink */ background-repeat: repeat-x; border: 1px solid pink; /* Change pink */ border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.067); } /* END OF Adjust Sitewide Background & Text Color/Size */
Step 3 – Slider
/* START OF Adjust Sitewide Background & Text Color/Size */ /* Optional - Remove Grey Bar above Slider */ .tc-header { border-bottom: none; } /* END OF Adjust Sitewide Background & Text Color/Size */
Step 4 – Featured Pages
/* START OF Adjust Sitewide Background & Text Color/Size */ /* Fix the White Rectangles (including FPU extension) */ .round-div, [class*=span] .widget-front .round-div { border-color: pink; /* Change pink */ } /* END OF Adjust Sitewide Background & Text Color/Size */
Step 5 – Pages/Posts
/* START OF Adjust Sitewide Background & Text Color/Size */ /* No code needed */ /* END OF Adjust Sitewide Background & Text Color/Size */
Step 6 – Press Customizr Footer
/* START OF Adjust Sitewide Background & Text Color/Size */ /* Change the Footer background */ footer#footer .colophon { background-color: pink; /* Change pink */ } /* Optional - Remove Grey Bar above Footer */ footer#footer { border-top: none; } /* END OF Adjust Sitewide Background & Text Color/Size */
Step 7 – Widgets Footer
/* START OF Adjust Sitewide Background & Text Color/Size */ footer#footer, .footer-widgets { background: none repeat scroll 0 0 pink; /* Change pink */ } /* END OF Adjust Sitewide Background & Text Color/Size */
Step 8 – Adjust sitewide fonts size/color
/* START OF Adjust Sitewide Background & Text Color/Size */ body { /* Adjust sitewide (#5A5A5A) text color */ color: #5A5A5A; /* Adjust sitewide (1.2em) text size */ font-size: 1.2em; /* Adjust sitewide (Open Sans) font family */ font-family: Open Sans; /* Adjust sitewide text alignment */ text-align: left; /* left|right|center|justify */ }/* END OF Adjust Sitewide Background & Text Color/Size */
FONT CUSTOMIZER
*New* Take a look at this new Extension for the best user experience with Fonts
Font Customizer extension
29 thoughts on “Adjust Sitewide Background & Text Color/Size”
only missing the snippets to change:
a:link
a:visited
a:hover
a:active
which for the bloody life of me I can’t seem to vector in on identifying so the only place I change the link colours is in the site wide notice for woocommerce enable site-wide store notice text /wp-admin/admin.php?page=wc-settings
any one?
any one?
#iARG today on this one 🙁
ENB..//
Hey Dave, thank you so much!! It works for me! 🙂
Hello I’ve searched hi and low in the discussion on how to change the color of the bottom horizontal bar that is just above the widgets area on my site, http://www.highvolmusic.com but, I cannot seem to find a fix. Can someone help me? Thx, Bill
Hi Bill!
our developer team tries to handle technical requests for the Customizr free theme in the support forum, would you mind asking your question there ?
https://wordpress.org/support/theme/customizr
Thanks 🙂
Hello, my post somehow disappeared..:) Thanks for this code , advice etc.. I was able to widen the “entry-content” background and even change the background color.. unfortunately I am unable to make the entry-content text max page width.. it stays at about 75%.. any ideas will be greatly appreciated, Thanks, Greg
Hello, thanks for this topis.. it helped alot.. one problem though.. I was able to make the “container or box” under the slider 100% page width thanks to the above code( I asaw this by changing its background color) … unfortunately the text is still about 75% of the page width (it even started to be aligned to the left side after the css changes but that is not a problem.. any ideas on how to make the text 100% page width?.. of course Im using the customizr theme with a child theme.. any help will be greatly greatly appreciated, Greg 🙂
Need to add this to avoid a square gray area around circled image in your post list if you set your home as a static page.
Is there any coding etc to allow me to remove the left and right containers so my pages can take up the entire width of the screen the same as the heading area?
Hi Debbie,
If you need to have your website content taking up the entire screen width, then you need to add tge following CSS code :
If you need to handle the sidebars, you might want to check this part od the documentation : http://www.presscustomizr.com/customizr/#layout
Hope this will help!
Hi
I just started to use customizwe its early stage on building my site ,
I manage to change the colour background for header it work but colour didn’t change in navbar wraper,box ,its still white .Tool developer of safari say it is black ??
Thanks for u help
Hi,
On my website I notice some very slight differences in the white of background. Specifically on any pages that have tables, the 1st, 3rd, 5th etc row will be slightly not-white in background, it is almost like light pinkish… I’ve tried setting the bgcolor to white, pinkish hue remains.
Also, this same hue shows up on both sides of my main content as blocks. It is hardly visible but it’s there. The page layout is full width. I Think this part of it has to do with me changing the main wrapper’s BG to white, so now it’s more white than the original BG, leaving me with these “blocks” of pinkish hue next to the main wrapper… any advice?
Cheers
Okay never mind on the main warpper thing, found the blocks and changed them (main body…I’m an idiot) still the table thing remains though.
Sorry for not responding sooner and for this standard reply:
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.
hello,
how can i change the tagline font for my personal font?.
best regards.
Hello Mr. Nicolas,
I’m really becoming so friendly user with Customizr theme even though i purchased the page unlimited plugin but i don’t know how to use or get the unlimited pages.
however, i went through the edit.css guiding process, everything went well except the codes below that could not change anything.
/* Fix the White Rectangles (including FPU extension) */
.round-div, .span3 .widget-front .round-div {
border: 104px solid pink; /* Change pink */
}
what do i do to?
Abdallah S. Katsina
Hi Abdallah and thanks for your purchase,
If you are new to Customizr (and WordPress), you might want to read this short guide on how to customize Customizr.
You can also post post a new thread in the the Customizr user’s forum.
If you still have issues then post a new thread in the the Customizr user’s forum and we’ll do our best to help you.
If you have an issue with the extension you’ve purchased, please report the issue in the extension forum here
Thanks
For the featured pages,
did the job for me, whereas your suggestion
moved the circles asymmetrically.
(I’m using FPU with four pages per row)
Hello,
I would like to change the hyperlink colors in the text on my website, but only for material that is in the main wrapper/body text. Every time I put CSS code into the css.styles file to do this, it either effects the slider, menus and everything, or nothing at all.
This is the basic html/css, and I’ve put various selectors with it.
a:link {color:#0000FF;}
a:visited {color:#660066;}
a:hover {color:#FF00FF;}
a:active {color:#FF0000;}
Is there a particular selector that lets me do this properly? Or perhaps a different file to paste it to? I’m very confused and a bit new to coding sites. Any help is much appreciated!
Cheers,
– David
Hi David,
If you are new to Customizr (and WordPress), you might want to read these short guides on how to customize Customizr and
http://www.presscustomizr.com/customizr/guide-css-html-customizr-wordpress-theme/.
Then, you can you try to make a research in :
1) the Customizr theme documentation
2) the FAQ
3) how to make a research in the Customizr user’s forum
4) the Customizr code snippets
If you still have issues then post a new thread in the the Customizr user’s forum and we’ll do our best to help you.
Hope this will help you and enjoy the theme!
Snippet refreshed. Concentrated on identifying each element within Customizr.
Please advise of any anomalies.
PS. I could extend the logo size. Now I need to center the logo. I looked at ‘Center the header block’ article and tried to create functions.php file for my child theme. I uploaded a php file to the root folder of the child theme. But it returns error, ‘Fatal error: include(): Cannot redeclare class tc___ in /home/ricky7r/public_html/wp-settings.php on line 323’. I wonder what needs to be done to fix this? Thank you!
Hi Misa, you seem to have include unwanted functions in the functions.php file of the child theme.
You might want to read the child theme tutorial :
http://www.presscustomizr.com/snippet/creating-child-theme-customizr/
and these WordPress ressources about child theme :
http://codex.wordpress.org/Child_Themes
Further debugging reading :
http://codex.wordpress.org/Debugging_in_WordPress
http://www.phpreferencebook.com/misc/php-errors-common-mistakes/
Hello, Nicolas,
Sorry for my late response. Thanks for your reply. This theme has a beautiful format so I decided not to modify too much. If I modify a template so much, what is the meaning of a beautiful template, right? 😉
😀
Thanks for the feedback Misa
Hi, I am trying to add background image to the header too and it doesn’t work … Or I wish I can change the logo size to spread horizontally. Any advice? Thank you.
Hi, I would make an image in the background of the .tc-header but it doesn’t work.
Can you help me ?
Thanks
Hi Thomas, this CSS code works.
Check out how to customize the Customizr link for further informations.
http://www.presscustomizr.com/customizr/how-to-customize-customizr-wordpress-theme/
Hope this helps
Hi Nicolas, when i put the code in firebug the image appear but when i paste it in the child theme or in custom css it doesn’t works.
have you got any ideas to resolve my problem ?
Hi Thomas, I have pasted the code in the Custom CSS and it worked fine.
Quite frustrating that it doesn’t work for you! I just can suggest you to retry…;-)
And if you are new to css, php and WordPress customization, read the following resources :
how to customize Customizr
http://www.presscustomizr.com/customizr/guide-css-html-customizr-wordpress-theme/
Hope this helps