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

How to add new quick links under help ..?

Discussion in 'XenForo Questions and Support' started by BlackMuddler, Feb 7, 2011.

  1. BlackMuddler

    BlackMuddler Active Member

    Hi ..

    I want to add further quick links under help to 2 other static pages with som privacy and terms info.

    How to do that - is that possible for a non-programmer?

    Thanks in advance...

    BlackMuddler
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You need to edit 2 templates: help_index and help_wrapper.

    Here is an example of adding a link to a page called Staff:

    help_index
    Code:
    <dl>
        <dt><a href="{xen:link pages/staff}">{xen:phrase cta_staff}</a></dt>
        <dd>{xen:phrase cta_staff_description}</dd>
    </dl>

    help_wrapper
    Code:
    <li><a href="{xen:link pages/staff}" class="primaryContent">{xen:phrase cta_staff}</a></li>

    If you also want the link to appear on the navigation bar then you need to edit the navigation template:
    Code:
    <li><a href="{xen:link pages/staff}">{xen:phrase cta_staff}</a></li>

    You will note that new phrases are also required so you will need to create those, renaming them accordingly for your needs.
     
    BlackMuddler likes this.
  3. BlackMuddler

    BlackMuddler Active Member

    That fine info Brogan! - have looked around for some time and have given up.. Thumbs up...

    Will asap try it out..
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Make sure you enter the code in the correct place in the templates.
    Just check where the neighbouring links are to see where to place it.
     
    BlackMuddler likes this.

Share This Page