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

XF 1.5 Where to edit helpers?

Discussion in 'XenForo Questions and Support' started by Blast, May 24, 2016.

  1. Blast

    Blast Active Member

    I want to edit this:
    {xen:helper sortArrow, $order, $orderDirection, reply_count}

    And hoping to replace the up and down to font awesome icons instead.
  2. Liam W

    Liam W Well-Known Member

    There's a static field in XenForo_Template_Helper_Core I believe that holds all the callbacks.

    You just have to change the callback, or change the code in the callback.

  3. Blast

    Blast Active Member

    Hey Liam. I apologize for this, but I can't seem to find that file anywhere. Where is it located?
  4. Liam W

    Liam W Well-Known Member


    It might be in one of the other files around that area.

  5. Blast

    Blast Active Member

    Thanks Liam. I found it now. I haven't worked with PHP before as I find it way too complicated.

    So this is the line inside:
    public static function helperSortArrow($order, $direction, $fieldName, $descOutput = ' ↓', $ascOutput = ' ↑')
    Since &XXX; is html, would it be possible for me to replace those with an HTML tag <i></i>?
  6. Blast

    Blast Active Member

    BINGO! It works!
  7. Blast

    Blast Active Member


    Thank you very much @Liam W. Couldn't have done it without your help.

Share This Page