vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=264)
-   -   Only Show Breadcrumbs on Forum Pages (https://vborg.vbsupport.ru/showthread.php?t=322166)

David Karol 03-19-2016 04:00 AM

Only Show Breadcrumbs on Forum Pages
 
1 Attachment(s)
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?

Code:

<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/attachmen...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

Code:

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

and the code for vB4 would be

Code:

<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

Code:

.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

Quote:

Originally Posted by IggyP (Post 2568245)
i actually just did this yesterday...the code i used is simply

Code:

.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 :)


All times are GMT. The time now is 03:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01055 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete