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

Style Properties and Updates

Discussion in 'Styling and Customization Questions' started by Jainic, Jun 8, 2012.

  1. Jainic

    Jainic Active Member

    When you update Xenforo, do you lose the customized style properties?
    I read that templates will not get updated if they have been altered. Is this the same case with style properties? Probably not (guessing), is it because style properties are saved through SQLs and templates are not? I'm confused o_O
  2. Chris D

    Chris D XenForo Developer Staff Member

    I can confirm that style properties remain, even after updates.

    Colours for example. A common thing you'd see is @primaryLighter. @primaryLighter will always refer to whatever colour you have set in Style Properties. Changing the Style Properties don't actually update the CSS or templates directly. It is just a marker for the actual value to be pulled from the database.

    Whereas if you change a template, you've changed the template. It's then impossible for the XenForo installer to understand how to merge the changes you've made with the changes they've made so the compromise is, your custom template stays, and is marked as "outdated" without the new changes.


    Hope that makes sense!
    Jake Bunce and Jainic like this.
  3. Jainic

    Jainic Active Member

    That makes perfect sense. Thank you!
    Yorick likes this.

Share This Page