RM 1.1 Change "Resources" to something else in breadcrumb only

Rob

Well-known member
#1
I'd like to change "resources" to "educational resources", but only in the breadcrumbs. Can this be done as I do not currently see an easy way.

Thanks for your help.
 

Chris D

XenForo developer
Staff member
#2
If you edit the breadcrumb template and find:
HTML:
            <xen:if is="{$selectedTab}">
                <span class="crust selectedTabCrumb"{xen:if $microdata, ' itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"'}>
                    <a href="{$selectedTab.href}" class="crumb"{xen:if $microdata, ' rel="up" itemprop="url"'}><span{xen:if $microdata, ' itemprop="title"'}>{$selectedTab.title}</span></a>
                    <span class="arrow"><span>&gt;</span></span>
                </span>
            </xen:if>
Replace with:
HTML:
            <xen:if is="{$selectedTab}">
                <xen:if is="{$selectedTab.title} == '{xen:phrase resources}'">
                    <xen:set var="$selectedTab.title">Educational Resources</xen:set>
                </xen:if>
                <span class="crust selectedTabCrumb"{xen:if $microdata, ' itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"'}>
                    <a href="{$selectedTab.href}" class="crumb"{xen:if $microdata, ' rel="up" itemprop="url"'}><span{xen:if $microdata, ' itemprop="title"'}>{$selectedTab.title}</span></a>
                    <span class="arrow"><span>&gt;</span></span>
                </span>
            </xen:if>
 
Top