1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Please donate today & help us with our growing server costs or buy premium for access to our premium products
    Dismiss Notice

FREE Remove the breadcrumbs from a specific node

Discussion in 'Xenforo Template Mods & Extras' started by HAWK, Mar 21, 2016.

  1. HAWK

    HAWK Administrator Staff Member ADMIN

    Likes Received:
    854
    Trophy Points:
    113
    Gender:
    Male
    This particular edit can be used if you want to set a Page as the home page.
    It works much better without the top and bottom breadcrumbs as it looks more like a static page, rather than part of the forum, which of course it still is.

    So the header, footer and styling all remain, just the breadcrumbs are removed.

    In the code below, change the 'node-55' for the actual node id of your page.
    You can check the node id in the ACP by clicking on the node title and it will be displayed in the URL.

    Open the PAGE_CONTAINER template and find this:
    Code:
    <!-- top breadcrumb, top ctrl -->
    <div class="breadBoxTop">
        <xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
        <xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
    </div>
    Replace it with this:
    Code:
    <!-- top breadcrumb, top ctrl -->
    <xen:if is="{$quickNavSelected} != 'node-55'">
    <div class="breadBoxTop">
        <xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
        <xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
    </div>
    </xen:if>
    Then find this:
    Code:
    <div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
    Replace it with this:
    Code:
    <xen:if is="{$quickNavSelected} != 'node-55'">
    <div class="breadBoxBottom"><xen:include template="breadcrumb" /></div>
    </xen:if>
     

Share This Page

Post thread