Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2016, 04:00 AM
David Karol David Karol is offline
 
Join Date: Jan 2011
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Only Show Breadcrumbs on Forum Pages

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">

Attached Images
File Type: png Screen Shot 2016-03-18 at 9.59.25 PM.png (216.8 KB, 0 views)
Reply With Quote
  #2  
Old 03-22-2016, 05:33 PM
greigeh greigeh is offline
 
Join Date: Jan 2015
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 03-30-2016, 07:38 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can try this. Put it on a template hook after body end

if (pageData.pageid == 145){
$('#breadcrumbs').css('display' , 'none')
}
Reply With Quote
  #4  
Old 03-30-2016, 10:52 PM
IggyP IggyP is offline
 
Join Date: May 2012
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i actually just did this yesterday...the code i used is simply

Code:
 .page1 #breadcrumbs {display:none;}
Reply With Quote
3 благодарности(ей) от:
David Karol, MarkFL, Replicant
  #5  
Old 03-30-2016, 11:08 PM
Replicant's Avatar
Replicant Replicant is offline
 
Join Date: Sep 2014
Location: Phoenix, Az. USA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
IggyP
  #6  
Old 05-11-2016, 04:41 AM
David Karol David Karol is offline
 
Join Date: Jan 2011
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by IggyP View Post
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.
Reply With Quote
Благодарность от:
IggyP
  #7  
Old 05-11-2016, 07:45 AM
IggyP IggyP is offline
 
Join Date: May 2012
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Благодарность от:
noypiscripter
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:51 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05093 seconds
  • Memory Usage 2,250KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (6)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete