View Full Version : How to turn off breadcrumbs...

01 Dec 2011, 00:41
For what it's worth, I run a site that has several content areas that are all integrated with vBulletin and that are accessible via tabs in the navbar (a photo gallery, links directory, wiki, etc). I was getting annoyed with breadcrumbs showing up when I did not want them to. So I figured out how to turn off breadcrumbs in all site areas OUTSIDE of the main forums.

You will need to add a conditional "if" statement in your navbar template.

Open navbar, scroll to the bottom, and look for the div code <div id="breadcrumb" class="breadcrumb"> and edit the code so it looks like this:

<vb:if condition="THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread'">
<div id="breadcrumb" class="breadcrumb">
<ul class="floatcontainer">
<li class="navbithome"><a href="index.php{vb:raw session.sessionurl_q}" accesskey="1"><img src="{vb:stylevar imgdir_misc}/navbit-home.png" alt="{vb:rawphrase home}" /></a></li>
{vb:raw navbits.breadcrumb}
{vb:raw navbits.lastelement}
<hr />

Using this conditional statement, you can see how you can turn breadcrumbs "on" or "off" for various parts of the site, depending on the value of THIS_SCRIPT.

28 Dec 2012, 14:15
Blast from the past, but this really did help me. Thanks so much for this.

04 Apr 2013, 17:52
nice work

27 May 2014, 22:58
Thank you, this rocks.