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

XF 1.4 Editing Prefix Titles?

Discussion in 'Styling and Customization Questions' started by Harry D, Nov 1, 2014.

  1. Harry D

    Harry D Member

    Is there a way to customize Prefix titles? For example, on the browser tab it will read:
    Prefix - Forum title etc.

    I would like it to be: [Prefix] Forum title etc.

  2. Amaury

    Amaury Well-Known Member

    Use @Chris D's solution in my thread here, except instead of removing the code enclose it in brackets in the proper places.
  3. Harry D

    Harry D Member

    Hello, Maru.

    I can't seem to get it working right. I'm putting the brackets around:
    {xen:helper threadPrefix, $thread, escaped} but it's still throwing in the dash, giving me:

    [Prefix - ] Forum title etc. - Name of Site
  4. Syndol

    Syndol Guest

    In thread_view try:
    <xen:title><xen:if is="{$thread.prefix_id}">[{xen:helper threadPrefix, $thread, escaped, '] '}<xen:else />{xen:helper threadPrefix, $thread, escaped}</xen:if>{$thread.title}{xen:helper pagenumber, $page}</xen:title>
    Last edited by a moderator: Nov 1, 2014
    Harry D likes this.
  5. Harry D

    Harry D Member

    Ladies and gentlemen, we have a winner! Thank you. :)
    Syndol likes this.

Share This Page