Remove Board Index from Footer

Post Reply
steven
Posts: 133
Joined: Sun Oct 01, 2017 3:08 pm

Remove Board Index from Footer

Post by steven »

On many boards, index performs the same function as home. To remove Index from the footer, open the navbar_footer.html file.

In phpBB 3.3.11 and locate the code below (about line 16):

Change

Code: Select all

			<!-- EVENT overall_footer_breadcrumb_prepend -->
			{% apply spaceless %}
			<span class="crumb">
				<a href="{U_INDEX}" data-navbar-reference="index">
					<!-- IF not U_SITE_HOME --><i class="icon fa-home fa-fw" aria-hidden="true"></i><!-- ENDIF --><span>{L_INDEX}</span>
				</a>
			</span>
			{% endapply %}
			<!-- EVENT overall_footer_breadcrumb_append -->
TO

Code: Select all

			<!-- EVENT overall_footer_breadcrumb_prepend -->
			<!-- Commented out Board Index here
			{% apply spaceless %}
			<span class="crumb">
				<a href="{U_INDEX}" data-navbar-reference="index">
					<!-- IF not U_SITE_HOME --><i class="icon fa-home fa-fw" aria-hidden="true"></i><!-- ENDIF --><span>{L_INDEX}</span>
				<!--</a>
			</span>
			{% endapply %}
			<!-- EVENT overall_footer_breadcrumb_append -->

In phpBB 3.3.4 and locate the code below (about line 15):

Code: Select all

			<!-- EVENT overall_footer_breadcrumb_prepend -->
			{% spaceless %}
			<span class="crumb">
				<a href="{U_INDEX}" data-navbar-reference="index">
					<!-- IF not U_SITE_HOME --><i class="icon fa-home fa-fw" aria-hidden="true"></i><!-- ENDIF --><span>{L_INDEX}</span>
				</a>
			</span>
			{% endspaceless %}
			<!-- EVENT overall_footer_breadcrumb_append -->
Replace with the following code:

Code: Select all

			<!-- EVENT overall_footer_breadcrumb_prepend -->
			<!-- IF 0 -->
			{% spaceless %}
			<span class="crumb">
				<a href="{U_INDEX}" data-navbar-reference="index">
					<!-- IF not U_SITE_HOME --><i class="icon fa-home fa-fw" aria-hidden="true"></i><!-- ENDIF --><span>{L_INDEX}</span>
				</a>
			</span>
			{% endspaceless %}
			<!-- ENDIF -->
			<!-- EVENT overall_footer_breadcrumb_append -->
After you make the change, log into ACP (Admin Control Panel) and purge the cache so your changes take effect.
Post Reply