Simple text color question

I have the following php code:

define(‘HEADING_TITLE’, ‘PLEASE NOTE - due to technical difficulties…’);

I want that outputted text “please note…” to display in red

Is there a way to add html tags or something of the sort to have this output in red?

Thanks for helping an extreme noobie :slight_smile:

-Aaron

[php]define(‘HEADING_TITLE’, ‘<span style=“color:red”;>PLEASE NOTE - due to technical difficulties…’);([/php]

As long as HEADING_TITLE is being echoed or included in the output, the browser will respect the markup.

I did what u requested and it ended up outputting that text and more above all the rest of the navigation bar etc… so it displayed it twice once in the right spot another at the very top above everything… and neither outputted in red…

Do i need to do an echo tag somewhere? I’m very new with this so my apologies… I put in the code just like you had displayed and those were my results…

let me know if i can give any more info that is helpful!

Aaron

Oops! Misplaced the semi-colon… should be red;" not red"; :-[

Try:

[php]define(‘HEADING_TITLE’, ‘PLEASE NOTE - due to technical difficulties…’);[/php]

Then where ever you want it to appear in your template you’ll need an echo… for example:

[php]echo ‘

’ . HEADING_TITLE . ‘

’;
//Outputs “PLEASE NOTE - due to technical difficulties…” (in red)[/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service