PDA

View Full Version : How to hide breadcrumb on the homepage...


vexxy
03-05-2010, 08:39 PM
I want to hide the breadcrumb on the main page, as the title suggests. Now, i suppose this can be done with an if ( if home ) but I don't know the syntax for vb 4.0

I need to start the if, then:

<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}
</ul>
<hr />
</div>

then end the if.

correct me if i'm wrong anywhere...and please, if you know that conditional

Lynne
03-05-2010, 08:56 PM
Assuming you are talking about the forum.php page:

<vb:if condition="THIS_SCRIPT != 'index'">
breadcrumb code
</vb:if>

vexxy
03-06-2010, 08:28 AM
tnx alot once again Lynne...helpful as always ;)

sdavis2702
07-31-2011, 11:39 PM
^^^ Awesome... I needed that too! Thanks.

setishock
08-02-2011, 03:13 AM
Put this is your additional.css and the breadcrumbs go away everywhere.

.breadcrumb > ul { display: none; } /* Creates a world of navigation problems */

But like the comment says it creates a world of navigation problems. The members either have to click one of the nav buttons or use the browser back button.

christian gate
11-10-2011, 11:40 PM
Is ther a similer code to remove the forum only icon eg: when clicked on the subforum, will show the breadcrumb of the subforum but not the main forum and when going to child forum will include everything exept forum.

Thanks in advance