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

XF 2.0 Style properties in templates

Mike

XenForo developer
Staff member
#2
The property template function. As an example:
Code:
<xf:if is="property('metaThemeColor')">
   <meta name="theme-color" content="{{ property('metaThemeColor') }}" />
</xf:if>
 

Mike

XenForo developer
Staff member
#5
Short answer is no, you'd likely need to expose something custom to do that. There are some helper methods in XF\Util\Color that you can use.