From the forums: customiziation is fun
This week the forums have been all about customization. Lets look at the top topics this week.
Adding sitewide search to BuddyPress Daily
Want to add Brajesh’s ‘Sitewide Global search’ and remove the sidebar search with BuddyPress Daily? No problem:
1. Edit sidebar.php and any other sidebars you want to remove the search from – you will find sidebars for buddypress have bp- before them under library/sidebars/.
Remove the following code:
<div class="light-container"> <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form"> <input type="text" id="search-terms" name="search-terms" value="" size="18"/> <?php echo bp_search_form_type_select() ?> <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>"/> <?php wp_nonce_field( 'bp_search_form' ) ?> </form> </div>
2. The search bar location you want to add the unified search to is located in library/components/searchform.php
Add linkedin to the social links in BuddyPress Scholar
A great tip to add more social links comes in the form of this one from James.
If you’d like to hardcode the link into your theme, this could be done by opening bp-scholar>sidebars>sidebar-home.php
Place the following on lines 64-66:
<div id="url-linkedin"> <a href="http://YOURLINK.com" title="Linked In">Follow us on Linked In</a> </div>
Replace YOURLINK.com with the url for your profile with linked in.
Finally, open up your style.css and add the following lines to the bottom:
#url-linkedin { padding: 5px 0 5px 30px; background: url("_inc/images/NEWIMAGE.png") no-repeat scroll 0 9px transparent; }
The other social media images are 16×16 and located in the _inc>images folder. You should be able to find a similar image for Linked in and place it in the same directory and then replace NEWIMAGE with the actual image name.
Leave a Reply