BuddyDev

Search

problem in style.css

  • Participant
    Level: Initiated
    Posts: 10
    kalpesh on #6368

    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

  • Participant
    Level: Initiated
    Posts: 10
    kalpesh on #6369

    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’ );

  • Keymaster
    (BuddyDev Team)
    Posts: 24636
    Brajesh Singh on #6370

    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.

This topic is: not resolved