Remove search box from header in Default bp theme
Simple enough. Create a child theme: http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/ Override the header.php and in the new header.php file, remove the search section.
‘header.php’ -thats exactly what i was looking for. cudn’t find out which file had the search section (pretty obvious though!)
one more thing- can u pls tell me which file to look for this-
i want to show the @username (with ‘@’ in the beginning) on hovering mouse over the display name. now it shows the user name on mouse hover, and i dont really want to use a whole plugin for encouraging everyone to use @mentions. if possible i wud like to show @username on mouse hover over the display pic too.
i think it wud b a neat to implement this in the theme by default too.
I’m not sure exactly what you mean. Are you talking about a simplified version of http://buddypress.org/community/groups/cd-bp-avatar-bubble/ You could always take that plugin and modify it to just be the core elements you want. Or maybe I’m not sure what exactly you are trying to accomplish.
that plugin pretty much serves the purpose. thanks.
@andrea_r @jeffsayre @crashutah
okey another dumb question-
i want to put google’s transliteration API http://code.google.com/apis/ajaxlanguage/documentation/#Multi on the create new post page (even better if i can make a custom post type section with an UI that displays the toggle input language option) and also in comments section.
any help on where exactly to put the code?
@desininja you know the Post New Topic button you used to start this thread? Hit it again when you have a new topic yaar
add the following in your child theme’s functions.php file;
`add_filter( ‘bp_search_form_enabled’, false );`
bye, bye, search box!
@sbruner would it be possible to replace the search in the header with google search function? as of right now i can only add google search as a sidebar widget.
@tommyhoang– why not widgetize your header! http://wpmu.org/how-to-widgetize-a-page-post-header-or-any-other-template-in-wordpress/
Make sure to do it in your BP child theme… don’t hack bp-default.
@sbruner, is that article up to date for the current version of wordpress and buddypress? I created a child theme and made a blank functions.php file and added the codes from step 1 and step 2. now Im a little confused with step 3, where am i suppose to put those codes and am I suppose to rename my functions.php file to page.php?
@tommyhoang– you don’t need step 2. You just need to place the code from step 3 into your header.php file where you want the widgets to show up. This article might help as well: http://digwp.com/2010/02/how-to-widgetize-wordpress-theme/
@sbruner, apparently the function ‘bp_search_form_enabled’ has been deprecated in BP 1.5:
@sbruner, okay that second article was a lot more easy to follow. so now it says my footer and header are ready to be used as widgets. but when i got to wp-admin/apperance/widgets, i only see the menu for sidebar widgets, shouldnt there be a footer and header as well?
@tommyhoang what says your “footer and header are ready to be used as widgets.”? Did you place the proper code in functions.php?
@sbruner, on the homepage of my site, right below the header it says : “widgetize header, This panel is active and ready for you to add some widgets via the WP Admin”. same with the footer. yeah i copied and pasted the exact codes from the article.
@sbruner, great news! i finally got it to work! thanks for the all resources and help man. really really appreciate it!!!! one last question, is the header widget suppose to be below the default buddypress banner? i was hoping for it to be on the banner.
my widgetized footer only displays the widgets vertically and not hortizontally. i believe ill have to do some style.css with this but im not very good with coding. So i decided to not use widgets and just edit the codes in my child’s footer.php to include links to pages. hahaha works great but hopefully i didnt do something wrong by using this alternative route.
@tommyhoang glad to hear you got it working. The header widget is supposed to be where you put it. Just move it in your header.php file to where you want it to show.
@sbruner, yeah i figured that out right before i read this. any chance you can help me out on this other topic
You must be logged in to reply to this topic.