Support Forum
The CSS I posted on the first page to fix font colour, I'm just saying it should be 'color' not 'font-color', so it should be:
#spMainContainer .spTopicViewSection { color: #000000; }
And I would probably put it at the very end of the stylesheet (reboot.php) along with all the other CSS - before the ending PHP.
These are the very last things in reboot.php
if ($viewDevice == 'mobile') {
include('reboot-mobile.php');
}
# load the rtl css file if needed
if (isset($_GET['rtl'])) {
include('reboot-rtl.php');
}
?
If I put that code before the ?, then all the formatting gets lost.
Yellow Swordfish said
As Ike said - before the php at the end. That means just before the opening php tag (<?php)
Sorry but this does not mean much to me. I'm not a coder so I don't understand the technical speak. I can get by with you telling me where exactly to place things. Does this mean at the very top of reboot.php?
Above this?
<?php header("Content-Type: text/css; charset: utf-8"); header("Expires: ".gmdate('D, d M Y H:i:s', (time()+900)) . " GMT");
Sorry, maybe we haven't explained properly!
You have CSS and PHP in the stylesheet (reboot.php) and you can't have any CSS inside the PHP sections.
General rule is that a PHP section starts with '<?php' and ends with '?>'
At the very bottom of reboot.php you have:
/* ---------------------- Mobile overrides misc -------------------------*/ @media screen and (max-width: 379px) { #spMainContainer #spLastVisitLabel { display: none; } } <?php # Load plugin file css (as .spcss files) foreach (glob("*.spcss") as $f) { include $f; } # load mobile overrides if ($viewDevice == 'mobile') { include('reboot-mobile.php'); } # load the rtl css file if needed if (isset($_GET['rtl'])) { include('reboot-rtl.php'); } ?>
As you can see the last CSS rule is a mobile rule, then the CSS ends and the PHP starts. I would place it after the last closing brace '}' and before the opening PHP tag '<?php' on line 11 of the below example - see:
/* ---------------------- Mobile overrides misc -------------------------*/ @media screen and (max-width: 379px) { #spMainContainer #spLastVisitLabel { display: none; } } <--- PLACE HERE <?php # Load plugin file css (as .spcss files) foreach (glob("*.spcss") as $f) { include $f; } # load mobile overrides if ($viewDevice == 'mobile') { include('reboot-mobile.php'); } # load the rtl css file if needed if (isset($_GET['rtl'])) { include('reboot-rtl.php'); } ?>
The way CSS works is that the rules that come first in the list on the page happen first, so anything that happens further down in the list can potentially overwrite the earlier rules. The thinking here is that if something else is controlling the font colour of the topic text, placing it at the very bottom will overwrite that..
Hope that helps!
Thanks for that explanation. I had tried it there as I figured that placing it at the very bottom was not correct since it had mobile codes there. It still does not change the color though. The thanks stat is still white.
BTW...I have this in between the Member since date and the online status, in case that matters. This is what I have:
#spMainContainer #spLastVisitLabel {
display: none;
}
}
#spMainContainer .spTopicViewSection {
color: #000000;
}
<?php
# Load plugin file css (as .spcss files)
foreach (glob("*.spcss") as $f) {
include $f;
}
Where you have it is perfect, but..
I took a look at your forum and can see the problem - it's possible I've overlooked something. I put a fix in place for the colour but might have changed more than I thought - It's been a LONG week since I made the changes!
Try adding .spTopicPostSection to the rule, so:
#spMainContainer .spTopicViewSection, #spMainContainer .spTopicPostSection { color: #000000; }
Remove the CSS we did earlier and try this in the same place.
1 Guest(s)