How to add a class to Buddypress avatars in the Activity stream? [closed]

When calling bp_loggedin_user_avatar(), you can set the ‘html’ attribute to false and it will return just the URL of the avatar (instead of the full HTML). Then you can style it how you want. Something like: $avatar_url = bp_loggedin_user_avatar( ‘html=false’ ); echo ‘<img class=”media-object” src=”https://wordpress.stackexchange.com/questions/157817/. $avatar_url .” width=”‘ . bp_core_avatar_thumb_width() . ‘” height=”‘ . bp_core_avatar_thumb_height() … Read more

remove_action conditionally for Custom Post Type – not working

I got it working in the end by using ‘template_redirect’ and changing the remove_action number from 8 to 1 🙂 // Remove ‘Genesis Co-Authors Plus’ author box and ‘filed under’ from custom post type add_action(‘template_redirect’, ‘lf_custom_cpt_display’); function lf_custom_cpt_display() { if ( is_singular( ‘local-bite’ ) ): { remove_action( ‘genesis_after_entry’, ‘gcap_author_box’, 1 ); remove_action( ‘genesis_entry_footer’, ‘genesis_entry_footer_markup_open’, 5 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)