1. 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

Discussion in 'Styling and Customization Questions' started by Amaury, Sep 28, 2014.

  1. Amaury

    Amaury Well-Known Member

    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.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Amaury and Chris D like this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    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.


    <div class="secondaryContent">
    <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.
    Amaury and Brogan like this.

Share This Page