This topic has 3 replies, 2 voices, and was last updated 10 years by Abe.

  • Author
  • #16671
     rudik2
    Participant

    Hi,
    i would like to change color to red in background “public message” button in profile and show this button in first position. How to change it?
    http://s30.postimg.org/yuxu0htmp/Bez_nazwy_1.jpg

    Please help.

    Regards,
    Tomasz

    #17189
     Abe
    Keymaster

    Hi, To change the color add this CSS:

    COPY CODE
    
    #profile .generic-button a.activity-button.mention {
        background: none repeat scroll 0 0 #FF0000;
    }
    

    To change the order when logged in add this code to sweetdate-child/functions.php

    COPY CODE
    
    add_action('after_setup_theme', 'kleo_change_public_button'); 
    function kleo_change_public_button() {
    	remove_action( 'bp_member_header_actions', 'bp_send_public_message_button', 20 );
    	add_action( 'bp_member_header_actions', 'bp_send_public_message_button', 1 );
    }
    

    When not logged in you need to edit this function kleo_bp_member_buttons in wp-content\themes\sweetdate\custom_buddypress\bp-functions.php

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #17306
     rudik2
    Participant

    Thank You Abe. What does the parameter 20 and 1 ???

    #17753
     Abe
    Keymaster

    Those are the action priority as the script executes them in that order. More: http://codex.wordpress.org/Function_Reference/add_action

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?