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

XF 1.4 Template Modifications

Amaury

Well-known member
#1
I searched the help page, but couldn't find anything.

What exactly are template modifications? I've never used them, as I don't know how they work.
 

Chris D

XenForo developer
Staff member
#3
Primarily, template modifications should be used by developers. They are not recommended for general style customisations (they are applied globally to the Master Style rather than individual styles).

Typically, manually editing the templates is better.

At a basic level, Template Modifications work on a find and replace system.

e.g.

Find:
Code:
<div class="secondaryContent">
Replace:
Code:
<div class="primaryContent">
They can be very advanced, e.g. using regular expressions and PHP Callbacks, but "String Replacement" as demonstrated above will work for basic tasks.