Skip to content

Instantly share code, notes, and snippets.

@BoweFrankema
Created February 1, 2013 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BoweFrankema/4690761 to your computer and use it in GitHub Desktop.
Save BoweFrankema/4690761 to your computer and use it in GitHub Desktop.
Adds button class to "like" button in BuddyPress
/**
* Custom jQuery Buttons
*/
function custom_like_buttons() { {
?>
<!-- html -->
<script>
// Adds button class to "like" button
jQuery(document).ready(function() {
//buttons
jQuery('.like').addClass('button white');
});
</script>
<!-- end -->
<?php }}
// Hook into action
add_action('close_body','custom_like_buttons');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment