-
AuthorPosts
-
August 21, 2017 at 2:36 am #1057510
Dear Forum,,
I am in the middle of developing a new web site for our club. It has a darker theme with a light standard text colour. http://baboons.huvb.de/
So far almost everything has worked with the exception of the Joomla Contacts Form. Here the ThemeMagic does not seem to alter the background colour of the form. White background with light gray text is not very ideal. http://baboons.huvb.de/index.php/kontakt/nachricht-an-den-baboons
How can I change this background colour to the standard @gray-dark?
Is there a custom variable that I can set in variables-custom.less?
Best Regards,
Hans von BülowPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 21, 2017 at 2:42 am #1057515Hi
it’s the default color of the template.
You can add this code in /css/custom.css file and change the color code as per needs.body { color: #eeeeee; background-color: #444444; }
Regards
August 21, 2017 at 2:47 am #1057519Thanks for the quick reply. I will try it out.
Shouldn’t this be controlled by the default background Color as set in ThemeMagic?
Best Regards,
HansAugust 21, 2017 at 2:54 am #1057521Just one more question.
In which directory should I put the custom.css.
In the Local/css/themes/ directory, or in the purity_iii/css directory?Best Regards,
HansAugust 21, 2017 at 3:47 am #1057534Dear Forum,
I put the custom.css file into purity_iii/css.
Using the inspector in Firefox, I can see it loads the custom.css.
If I manually change the Color variable, then it changes the text color.
If I however change the variable to "background-color: #345404;", then nothing happens. Is the variable name correct?I am sorry for asking so many dumb questions, but I have very little experience in css and web-design.
Regards,
HansPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 21, 2017 at 8:35 am #1057574Hi
You cN see the color option in ThemeMagic as well.
Background color for body class work only for body container.Regards
August 21, 2017 at 12:32 pm #1057650Thank you. The change in body text works. This still leaves the question of how to change the background color of the contact form itself.
http://baboons.huvb.de/index.php/kontakt/nachricht-an-den-baboons
Do you have any advice on that?
Best Regards,
HansPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 21, 2017 at 11:52 pm #1057747Hi
I can see the code is working fine from custom.css file.
It’s the same color that you added: http://prntscr.com/gberetRegards
August 22, 2017 at 3:05 am #1057809Dear Pankaj,
thank you for all your help and perseverance.For the custom.css. As far as the text color goes, it is applied to the contacts form. But the background color for the contacts page is white. This makes reading the text in the contacts form very hard.
Why is this? Why doesn’t the contacts form react to the background-color variable?
A workaround would be too lighten the background and darken the text, but that doesn’t really fit in with my ideas for the overall theme.
Regards,
HansPankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 22, 2017 at 3:09 am #1057811Hi
You can use firebug and override the code using custom.css file.
The background is working from custom.css as well.
You can change the color code as per needs.August 22, 2017 at 3:38 am #1057814Dear Pankaj,
using the built-in style editor in Firefox, I can successfully change the Color of the text successfully. However changing the background variable has no effekt.
It is probably a UTS-error (User Too Stupid) but I can’t understand why it doesn’t work.
Regards,
Hans
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
August 22, 2017 at 4:08 am #1057827Hi
You can use firebug to check the stye classes and override the code in custom.css file to customise the default color of the template.
Example to check the style code using firebug/inspect element http://prntscr.com/gbgpmbRegards
AuthorPostsViewing 12 posts - 1 through 12 (of 12 total)This topic contains 11 replies, has 2 voices, and was last updated by Pankaj Sharma 6 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Change background colour of contacts form for dark theme with light text colour
Viewing 12 posts - 1 through 12 (of 12 total)