Tagged: Action button style
I added “private message” button in member-loop. and friend-ship button is already there. now I want to set there position. but unable to do it. As for desktop, I did it. But for mobile screen half friendship is not showing.
I used media query as @media (max-width: 480px) {#buddypress ul.item-list li div.action{top: 218px; left: 0px;}
}
@media (max-width: 320px) {#buddypress ul.item-list li div.action{top: 218px; left: 0px;}Please help
Thanks
I added private button with below code:
function filter_message_button_link( $link ) {
$link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . ‘/compose/?r=’ . bp_core_get_username( bp_get_member_user_id() ) );
return $link;
}function display_private_message_button() {
if( bp_get_member_user_id() != bp_loggedin_user_id() ) {
bp_send_message_button();
add_filter(‘bp_get_send_private_message_link’, ‘filter_message_button_link’, 1, 1 );
}
}
add_action( ‘bp_directory_members_item’, ‘display_private_message_button’ );Hi Kalpesh,
Check for overflow hidden on the div.actions or meta. That is most probably causing it.
You must be logged in to reply to this topic.