Skip to:
Content
Pages
Categories
Search
Top
Bottom

Groups description page = Members profile page – using the same css – solution

  • Avatar of 4ella
    4ella
    Participant

    @4ella

    Hello Slaffik,
    @slaffik
    I have changed css in description page to be the same as profile custom fields in default buddypress theme, so now custom fields looks the same as the member profile custom fields , if you want to use them or control it I have inserted the code below :
    I have changed following code in bpge-loader.php (lines 49 – 61)

    `echo ‘

    ‘;
    foreach($fields as $field){
    if ( $field->display != 1)
    continue;

    echo ‘

    ‘;
    $data = groups_get_groupmeta($bp->groups->current_group->id, $field->slug);
    if ( is_array($data))
    $data = implode(‘, ‘, $data);
    echo ‘

    ‘;
    }
    echo ‘

    desc) ? esc_attr($field->desc) : ”) .’”>’ . $field->title .’ ‘ . $data . ‘

    ‘;
    }`

    I think it would be better now , label and value is in one line and has the same colour , structure like member profiles , in case you want to use it , pls. control it , it works for me perfectly but I am not an expert at all.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.