Question: Like everyone else who installs XenForo forum software, I see a set group of footer links down at the bottom of my website. Here’s what they look like. I changed the phrases for some of them, so they’re not totally default, but I haven’t added or removed any of the links.

I was thinking about adding some additional links to this list, but I can’t seem to figure out how to do it. There are no easy settings to change in the admin. I’d like one link to go to my blog and maybe add a few others later on. Does anyone know how to add links to the footer of a XenForo forum?
Answer: Yes, you can add links to this list, but you’ll have to code them into one of the templates. Log into your admin panel and then browse to Appearance > Templates > PAGE_CONTAINER. Then, do a search for this code:
<ul class="p-footer-linkList">
At the time of this writing, there are two instances of this code. You’re looking for the list of links that are located after the second instance. Here’s the code you’ll find:
Code:
<ul class="p-footer-linkList">
<xf:if is="$xf.visitor.canUseContactForm()">
<xf:if is="$xf.contactUrl">
<li><a href="{$xf.contactUrl}" data-xf-click="{{ ($xf.options.contactUrl.overlay OR $xf.options.contactUrl.type == 'default') ? 'overlay' : '' }}">{{ phrase('contact_us') }}</a></li>
</xf:if>
</xf:if>
<xf:if is="$xf.tosUrl">
<li><a href="{$xf.tosUrl}">{{ phrase('terms_and_rules') }}</a></li>
</xf:if>
<xf:if is="$xf.privacyPolicyUrl">
<li><a href="{$xf.privacyPolicyUrl}">{{ phrase('privacy_policy') }}</a></li>
</xf:if>
<xf:if is="$xf.helpPageCount">
<li><a href="{{ link('help') }}">{{ phrase('help') }}</a></li>
</xf:if>
<xf:if is="$xf.homePageUrl">
<li><a href="{$xf.homePageUrl}">{{ phrase('home') }}</a></li>
</xf:if>
<li><a href="{{ link('forums/index.rss', '-') }}" target="_blank" class="p-footer-rssLink" title="{{ phrase('rss')|for_attr }}"><span aria-hidden="true"><xf:fa icon="fa-rss" /><span class="u-srOnly">{{ phrase('rss') }}</span></span></a></li>
</ul>
To add, say, a link in this list to your blog, you’d want to insert something like this someplace in this list:
<li><a href="https://yourwebsite.com/blog/">Blog</a></li>
After you format that sample code for your own uses and place it in with the other code, just save the template and take a look at your footer links on the outside of your site. The blog one should be added.
Leave a Reply