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

XF 1.1 How to hide Forums in breadcrumb

Discussion in 'XenForo Questions and Support' started by time, Apr 14, 2013.

  1. time

    time Active Member

    How to hide Forums in breadcrumb

    14-04-2013 8-55-33 AM.gif

    Thanks
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That second breadcrumb is always the name of the selected tab. To remove it you must edit this template:

    Admin CP -> Appearance -> Templates -> breadcrumb

    Find and remove this block of code:

    Code:
    			<xen:if is="{$selectedTab}">
    				<span class="crust"{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>
    
     
  3. time

    time Active Member

    (y) Like

    Hi Jake
    when members logout -> url / forums, how to change it

    Thanks
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. time

    time Active Member

    (y) Like,
    <a href="{xen:link logout, '', '_xfToken={$visitor.csrf_token_page}', 'redirect={$requestPaths.requestUri}'}" class="LogOut">

    How, If i want redirect -> portal.

     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    What is your portal URL?
     
  7. time

    time Active Member

  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Code:
    <a href="{xen:link logout, '', '_xfToken={$visitor.csrf_token_page}', 'redirect=/'}" class="LogOut">
    
     
    time likes this.
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    time likes this.
  10. time

    time Active Member

    100 Like (y):love:
     
  11. time

    time Active Member

  12. cjesuele

    cjesuele New Member

    Quick question... can you remove JUST the second breadcrumb, and keep all others?

    Or does deleting this block of code, get rid of all selected tabs as the user clicks through the site?

    Or even better, is there a way to manually change only the second breadcrumb to redirect to another desired page?

    Thank you!
     
  13. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Removing that block will remove JUST the second breadcrumb for all pages.

    The template code is there and can be modified to point elsewhere if you want.
     
  14. cjesuele

    cjesuele New Member

    Excellent, many thanks!
     

Share This Page