View Full Version : Changing date text colour above posts
donkspurs
07-29-2014, 12:37 PM
I've had a look all through the stylevars for this and can't find it anywhere!
I'm trying to change the text colour of the date & time above each post;
https://vborg.vbsupport.ru/external/2014/07/9.png
In Stylevars, I changed the 'postbithead_color' which I thought would be it, but it only changed the time text colour in the bar when viewing Private Messages...
Anyone know any reason why the date/time text colour above posts might remain black?
Thanks for any help.
EDIT - For anyone reading this for help, to change this text colour I found I had to change the stylevar 'thead_font_color'.
Lynne
07-29-2014, 03:57 PM
It looks like you may have a custom style, so we would need to actually get a link to see what CSS is affecting it.
donkspurs
07-29-2014, 05:10 PM
It looks like you may have a custom style, so we would need to actually get a link to see what CSS is affecting it.
Thanks for the help again!
Here's the site link; www.fifa247.net/forum.php
We are using the custom style 'orange theme'.
Lynne
07-29-2014, 08:39 PM
Either you don't allow users to switch styles, or you don't allow users to view the orange theme as I am unable to switch to it.
donkspurs
07-29-2014, 09:26 PM
Either you don't allow users to switch styles, or you don't allow users to view the orange theme as I am unable to switch to it.
Sorry, I should have explained it better. The default theme that's on there is the orange theme, but re-skinned to a blue. The screenshot I used was an older image which made things a bit misleading and confusing!
Thanks again for checking for us.
Rafa-el
07-29-2014, 09:54 PM
Add this to your additional.css on the theme you want to change that color:
#posts .posthead .time, #posts .nodecontrols {
color: #000;
}
.postbitlegacy .posthead {
color: #000;
}
And put the color you want where it says #000
donkspurs
07-30-2014, 12:16 AM
Add this to your additional.css on the theme you want to change that color:
#posts .posthead .time, #posts .nodecontrols {
color: #000;
}
.postbitlegacy .posthead {
color: #000;
}
And put the color you want where it says #000
Thanks for the help. I've just tried that, changing the colours to #ffcc00 so it would stand out if it did work, and unfortunately it hasn't made any difference to the text colour. (still black) :(
Lynne
07-30-2014, 01:02 AM
You have two different additional.css files called in your source code. The one called 'last' will override the one called 'first'. Are you adding the code to the right ('last') additional.css template?
donkspurs
07-30-2014, 12:35 PM
You have two different additional.css files called in your source code. The one called 'last' will override the one called 'first'. Are you adding the code to the right ('last') additional.css template?
I can only see the one additional.css template. It's the same one I've used in the past for other modifications which have worked fine;
https://vborg.vbsupport.ru/external/2014/07/3.png
Definitely something overriding this specific code though, as you say. Just no idea what exactly. :(
Lynne
07-30-2014, 03:13 PM
Here are the two links in the source code:
<link rel="stylesheet" type="text/css" href="css.php?styleid=5&langid=1&d=1406600035&td=ltr&she et=additional.css" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=5&langid=1&d=1406600035&sheet=addi tional.css" />
</head>
You had to have modified your template, or used a plugin, to add one of those. I'd suggest removing it and then trying to add your CSS.
donkspurs
07-30-2014, 03:56 PM
Here are the two links in the source code:
<link rel="stylesheet" type="text/css" href="css.php?styleid=5&langid=1&d=1406600035&td=ltr&she et=additional.css" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=5&langid=1&d=1406600035&sheet=addi tional.css" />
</head>
You had to have modified your template, or used a plugin, to add one of those. I'd suggest removing it and then trying to add your CSS.
That's really strange. No idea how that's happened unfortunately. :confused:
Under normal circumstances, would the postbithead_color in stylevars change the date/time text above posts then?
Lynne
07-30-2014, 11:02 PM
Yes, it would, but you have added this line to your additional.css template and that overrides it:
#posts .posthead .time, #posts .nodecontrols {
color: rgb(51, 51, 51);
}
donkspurs
07-31-2014, 12:33 AM
Yes, it would, but you have added this line to your additional.css template and that overrides it:
#posts .posthead .time, #posts .nodecontrols {
color: rgb(51, 51, 51);
}
Ah, that's really strange. I finally managed to find the right stylevar for it after looking at the code you put. Naturally I searched the additional.css template for #posts and only found the following;
https://vborg.vbsupport.ru/external/2014/07/1.png
Which lead me to then searching the stylevars for 'thead_font_color'. After finding this and changing the colour, it worked! So for some reason it's that stylevar which changes the text colour for date/time above posts for me, rather than the postbithead_color.
I've made a note of it now so won't forget! Thanks again for everyones help in here.
Lynne
07-31-2014, 12:51 AM
I'm glad you got it figured out and posted the solution here. (It may help others in the same situation!)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.