Advertisement:

Author Topic: Text in different color  (Read 357 times)

Offline Михаило

  • Semi-Newbie
  • *
  • Posts: 11
  • Gender: Male
    • michaelwb on GitHub
Text in different color
« on: February 16, 2018, 11:55:29 AM »
I would like to know how can I change color of this text?

https://prnt.sc/ifog70 [nofollow]

Thanks

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,048
  • 'Tis the gift to be simple (duh)
Re: Text in different color
« Reply #1 on: February 16, 2018, 12:37:42 PM »
Not the most elegant way to do it, but simplest -

index.template.php

Code: [Select]

if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
echo '
<li><a style="color: red;" href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';


Offline marcottt3

  • Newbie
  • *
  • Posts: 1
Re: Text in different color
« Reply #2 on: February 16, 2018, 06:07:07 PM »
I also have that problem