Filter on widget-title does not work with custom links

The “Links” widget uses wp_list_bookmarks, which outputs a nested list similar to: <li> <h2>[category]</h2> <ul class=”xoxo blogroll”> [links] </ul> </li> You can override [category] using the link_category filter: function wpse_147543_link_category( $title ) { $title=”title”; return $title; } add_filter( ‘link_category’, ‘wpse_147543_link_category’ );

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