use style color

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Jan 20, 2015 9:32 pm
Reply with quote
Report this post
Hi,

How can I use the style color to change the color of a SPAN.
For example when some one changes the template color the SPAN must also change from color.

And I don't want to change something in the style$.css because when there is a update it will override my changes.
Is it posible to manage this in the override.css or must I use something with jQuery in the template default.php file

Best regards
User avatar
Senior Boarder

GK User
Wed Jan 21, 2015 7:29 am
Reply with quote
Report this post
Our template uses span elements for some of the design. Changing every span might not be the best idea.
Maybe you could explain in more details what would you like to achieve and I'll be able to advice better ;).
User avatar
Moderator

GK User
Wed Jan 21, 2015 9:07 pm
Reply with quote
Report this post
I want to give text a color, also when changing the color style of the template it must change.
But I don't want to add something to the theme#.css files because after a update all the hackes are gone.

I was looking for some jQuery solution to add in the default.php or something else in the override.css file of the template. Any solution that jQuery is getting the color from another class and copy it to a new class.
User avatar
Senior Boarder

GK User
Fri Jan 23, 2015 5:23 pm
Reply with quote
Report this post
\the best idea is to use override.css - then when you do the update its the only file you need to bring back after the update.
User avatar
Moderator

GK User
Tue Jan 27, 2015 11:31 pm
Reply with quote
Report this post
Okey, but when i put something like this p.extraColor {color: #4ba8e9;} in my override it won't change when changing the template color with color selector in the footer.
User avatar
Senior Boarder

GK User
Wed Jan 28, 2015 7:53 pm
Reply with quote
Report this post
It won't, that is a true, but...
When you select a style body class is added: style1, style2 etc, so you could use:
Code: Select all
.style1 p.extraColor {color: red;}
.style2 p.extraColor {color: green;}

etc.
User avatar
Moderator


cron