1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Today red, yesterday green

Discussion in 'Styling and Customization Questions' started by froyAndy, Apr 11, 2016.

  1. froyAndy

    froyAndy New Member


    i would like have on the start site the date of post, when it was today, it will be red, and when it was yesterday it would be green color, and when it was befor to days or longer, it have to be in the normal color. Someone have a idea in what for template i have to search and what i have to change?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    It's not quite that easy. There is javascript involved. Even inserting HTML into the time templates in page_container_js_body ends up getting escaped.

    I don't have a good solution for this off hand. Modifying the javascript file would work but you really don't want to rely on file edits.
  3. froyAndy

    froyAndy New Member

    OK, thanks so long (n)

Share This Page