This topic has 8 replies, 3 voices, and was last updated 9 years by JOHearn1216.

  • Author
  • #80359
     newimageind
    Participant

    I want to remove the space/empty lines as circled, I’d like the release these space to fit more information on this page. Thanks!

    Attachments:
    You must be logged in to view attached files.
    #80683
     Laura
    Moderator

    Hello, please add this style.css of child theme

    COPY CODE
    
    body.directory.members.buddypress.page #main {
        padding-top: 0px !important;
    }
    div#members-dir-list {
        margin-top: -5%;
    }
    .search-item .author {
        margin-bottom: -2%;
    }
    

    For extra information you could use this code in functions.php
    https://archived.seventhqueen.com/forums/topic/about-us-info-not-show-in-member-listing/#post-66413

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #81020
     newimageind
    Participant

    Thanks Laura, two more questions,
    1. Is there a way to change the font color and style of the age? for example under “Stephanie”, her age is show as “22”.
    2. I use the following code to display extra information on the members page:

    add_action(‘bp_directory_members_item’, ‘bphelp_dpioml’);
    function bphelp_dpioml(){
    $bphelp_my_profile_field_1=’State’;
    $bphelp_my_profile_field_2=’Ethnicity’;
    $bphelp_my_profile_field_3=’Eye Color’;

    if( is_user_logged_in() && bp_is_members_component() ) { ?>
    <div class=”bph_xprofile_fields” style=” margin-left: 0%;”>
    <?php echo $bphelp_my_profile_field_1 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_1 ); ?><br />
    <?php echo $bphelp_my_profile_field_2 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_2 ); ?><br />
    <?php echo $bphelp_my_profile_field_3 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_3 ); ?><br />

    </div><?php
    }
    }

    however if I add more than 3 fields, the rest will not show on the page. how can I fit one or two more lines of data in there?

    Thank you!

    #81396
     Laura
    Moderator

    Hello, they do not show because of css?
    Can you add the fields so i can see it? 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #82319
     newimageind
    Participant

    Here I added the fourth field:

    add_action(‘bp_directory_members_item’, ‘bphelp_dpioml’);
    function bphelp_dpioml(){
    $bphelp_my_profile_field_1=’State’;
    $bphelp_my_profile_field_2=’Ethnicity’;
    $bphelp_my_profile_field_3=’Eye Color’;
    $bphelp_my_profile_field_4=’Highest Education’;

    if( is_user_logged_in() && bp_is_members_component() ) { ?>
    <div class=”bph_xprofile_fields” style=” margin-left: 0%;”>
    <?php echo $bphelp_my_profile_field_1 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_1 ); ?><br />
    <?php echo $bphelp_my_profile_field_2 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_2 ); ?><br />
    <?php echo $bphelp_my_profile_field_3 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_3 ); ?><br />
    <?php echo $bphelp_my_profile_field_4 ?>: <?php echo bp_member_profile_data( ‘field=’.$bphelp_my_profile_field_4 ); ?><br />

    </div><?php
    }
    }

    On the screen it only show the first three, not the fourth.

    Thanks!

    Attachments:
    You must be logged in to view attached files.
    #82596
     Laura
    Moderator

    Hello, can you link me to the page so i can inspect it? 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #84315
     newimageind
    Participant
    This reply has been set as private.
    #84551
     Laura
    Moderator

    Hello, i am sorry but i cannot find a solution if i cant see it, i hope you can find a solution 🙂

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

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #90117
     JOHearn1216
    Participant

    What file did you add the membership field codes to?

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

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

Log in with your credentials

Forgot your details?