Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

group header

By: a guest on Dec 14th, 2012  |  syntax: None  |  size: 1.28 KB  |  views: 65  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. You forgot to add the link to create a group when you changed header tag from:
  2. <h3><?php _e( 'Groups Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> &nbsp;<a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create' ); ?>"><?php _e( 'Create a Group', 'buddypress' ); ?></a><?php endif; ?></h3>
  3.  
  4. to
  5. <header class="entry-header"><?php _e( 'Groups Directory', 'buddypress' ); ?></header>
  6.  
  7. Should be either
  8. <header class="entry-header"><?php _e( 'Groups Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?> &nbsp;<a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create' ); ?>"><?php _e( 'Create a Group', 'buddypress' ); ?></a><?php endif; ?></header>
  9.  
  10. or bring out the create groups link into seperate line like so
  11. <code><header class="entry-header"><?php _e( 'Groups Directory', 'buddypress' ); ?></header>
  12. <?php if ( is_user_logged_in() && bp_user_can_create_groups() ) : ?><p><a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/create' ); ?>"><?php _e( 'Create a Group', 'buddypress' ); ?></a></p><?php endif; ?>
  13. </code>