Marcus posted an update 2 months, 2 weeks ago
Here is a quick wordpress hack for you guys.
If you want to just add your own classes to WordPress functions then look no further!
Here is an example of how you can add your own extra class to an echo’ed buddypress user avatar used in the message loop EASILY.
bp_message_thread_avatar( array( ‘class’ => avatar1 ) );
This code will add the class “avatar1” to the avatar and you can also set the height and width to what you want to.
You can use this on any wordpress functions you like aslong as the function accepts the class argument such as user avatars.
If you want to add more than one class then the easiest way to do this is to append another one and add a space before it.
bp_message_thread_avatar( array( ‘class’ => ‘avatar1′.’ plop’, ‘width’ => 42, ‘height’ => 42 ) );
This allow for better customization. I hope this hack helps someone because before I knew this I just was settling with wrapping the function within a custom div or editing wordpress divs using css wich isnt the best way.
@utterliadmin active 4 days ago
This is the best news I have heard in a long time. Amazons stock has plunged $5 billion after Donald trump tweets that amazon is doing “great damage to tax paying retailers.”… Donald Trump is right! Amazon avoids/evades tax across the world and is harming economies big time across the world. In my opinion Amazon should be broken up into tin […] View