Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

  • Profile photo 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 '<table class="profile-fields zebra">';
    foreach($fields as $field){
    if ( $field->display != 1)
    continue;
    
    echo '<tr><td class="label">desc)  ? esc_attr($field->desc) : '')  .'">' . $field->title .'</td>';
    $data = groups_get_groupmeta($bp->groups->current_group->id, $field->slug);
    if ( is_array($data))
    $data = implode(', ', $data);
    echo '<td class="data">' . $data . '</td></tr>';
    }
    echo '</table>';
    }

    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)
  • The topic ‘Groups description page = Members profile page – using the same css – solution’ is closed to new replies.
Skip to toolbar