Tagged: x
-
AuthorPosts
-
May 16, 2016 at 2:01 pm #994167
Scott MSpectatorHello. You can use the code below to change a single page background color but I noticed that if you are using a background image with certain sizing codes applied, there can be conflicts. The code below will basically put a red background OVER the image in some cases.
I noticed that if I choose integrity light, then my background will be white. Also, if I choose dark, my background will be black. I found that when I apply codes to my background image (and switch between light and dark settings), there are NO issues at all with the image.
So my question is, do you have the css code to change integrity Light/Dark colors, to something other than black and white, for a single page? I think I just need a more hard coded solution for it to work…maybe just the integrity code with a page id in front of it.
thanks!!!
.page-id-115 .site { background-color: red; }May 16, 2016 at 3:32 pm #994337
JoaoModeratorHi Scott.
Add !important to your code so it will have priority.
.page-id-115 .site { background-color: red !important; }Hope that helps,
Joao
May 17, 2016 at 9:28 am #995492
Scott MSpectatorthank you but that doesn’t answer my question.
Please read again. I’m looking for the code integrity light/dark color code. It is not just a simple code I don’t think, as it pertains to your entire theme globally.
thanks
May 17, 2016 at 10:12 am #995578
John EzraMemberHi Scott,
Thanks for updating the thread and sorry for the confusion. The background for the light and dark are applied on body element and the .site class is for the dive that covers the entire site.
If you put a background for the .site any background on the body element will not be visible as the .site is a layer on top of it.
You can add this under Custom > CSS in the Customizer or in your child theme’s style.css file.
.page-id-115 { background-color: red; }In the above, we just removed the .site class. The .page-id-115 is a body element class so it automatically affects the body element.
Hope this helps – thanks!
May 17, 2016 at 12:59 pm #995918
Scott MSpectatorsweet…yep it worked in the customizer without affecting the image.
thanks!
May 17, 2016 at 1:48 pm #995981
RahulModeratorYou’re welcome!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-994167 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
