PDA

View Full Version : Only Show Breadcrumbs on Forum Pages


David Karol
03-19-2016, 04:00 AM
I'd like to remove 'breadcrumbs' for only the home page.

Since this is only within outer-wrapper, is there a way to specify via CSS to only remove for this page?

<div id="outer-wrapper">
<div id="wrapper">
<div id="header-axd" class="header-edit-box axdnum_1 h-clearfix">
<div class="b-top-background__header-mainnav-subnav">
<ul id="breadcrumbs" class="h-clearfix" itemprop="breadcrumb">
<li class="crumb ellipsis">
<a class="crumb-link" href="http://v5.soundforums.net/">Home</a>
</li>
<li class="vb-icon separator"></li>
<li class="crumb ellipsis">Above The Fold</li>
</ul>
<div id="content">


https://vborg.vbsupport.ru/attachment.php?attachmentid=154535&stc=1&d=1458363574

greigeh
03-22-2016, 05:33 PM
This is really easy, except i'm not entirely sure what the code is in vB5 as i'm still an avid vB3.8 supporter. To hide it from forum home in vB3 you would wrap the follow around it

<if condition="THIS_SCRIPT != 'index'">
html
</if>


and the code for vB4 would be


<vb:if condition="(THIS_SCRIPT != 'index')">
html
</vb:if>



If you are knowledgable with coding you might be able to figure out how to change this to vB5 code.

Replicant
03-30-2016, 07:38 PM
You can try this. Put it on a template hook after body end

if (pageData.pageid == 145){
$('#breadcrumbs').css('display' , 'none')
}

IggyP
03-30-2016, 10:52 PM
i actually just did this yesterday...the code i used is simply

.page1 #breadcrumbs {display:none;}

Replicant
03-30-2016, 11:08 PM
Dude, that's frickin' awesome. I didn't know they were using page numbers on the body class. That'll make things easier in a lot of instances.

David Karol
05-11-2016, 04:41 AM
i actually just did this yesterday...the code i used is simply

.page1 #breadcrumbs {display:none;}

Thanks, this is great.

And thanks for giving some CSS starters all around (both here and .com). I've been able to take these starting points and get a lot of other items resolved on my own.

IggyP
05-11-2016, 07:45 AM
glad to be able and help :)

gotta give props to glenn vergara for all the support he has given the vb community over the years and has really helped me learn alot...and the community in general really is one great thing of being a vb customer, lot of good and helpful ppl here :)