XF 2.2 How to add a text link to homepage only

Artashes

Member
Hey everyone,

What's the easiest way to add a text-link to a footer, but so that the text-link would display only on a homepage, not site-wide?

For example, it would be great to add such a link to this line: Community platform by XenForo © 2010-2021 XenForo Ltd.

Thank you for any ideas.
 
Edit the PAGE_CONTAINER template and wrap the text in a conditional statement for the page you want it to display on.

For example:
HTML:
<xf:if is="$template == 'forum_list'">
    Content
</xf:if>
 
Thank you, @Brogan It sounds simple enough and feels like exactly what I am looking for, except I am staring at the PAGE_CONTAINER like...

Stare Staring GIF


...and not having a clue where to properly insert that piece of code to end with a link on the line I want to end up on. 😁
 
Lines 565 to 637 are the footer block.

I don't know exactly where you want it but you can experiment with different locations within that section of code.
 
Top Bottom