wrap it in a span either with a css class or an inline style?
print "<h2><span class="red_days">$days</span> days to go!</h2>";
then in style.css:
h2.red_days { color: red; }
or
print "<h2><span style="color: red;">$days</span> days to go!</h2>";
Alchymyth
I tried your second option but as soon as the span is inserted the code fails to show anything at all.
Could it be because the code is within the PHP Code widget?
my bad – i need to pay more attention to the quotation marks:
print "<h2><span style='color: red;'>$days</span> days to go!</h2>";
or
print "<h2><span class='red_days'>$days</span> days to go!</h2>";
Alchymyth
Single quotes made all the difference.
Don’t know why but many thanks.