BuddyDev

Search

[Resolved] xprofle on header

  • Participant
    Level: Enlightened
    Posts: 130
    giuseppe on #44635

    Hi again,

    as you suggested me I have added xprofile on header.

    They are below the buttons (pls see here https://ibb.co/93tk0sq ) but they should be above, immediately after the image profile.

    This is the snippet:

    function add_member_meta_data_profile() {
    $Nome = bp_get_member_profile_data(‘field=Nome’);
    $Cognome = bp_get_member_profile_data(‘field=Cognome’);
    $NomeNegozioImpresa = bp_get_member_profile_data(‘field=NomeNegozioImpresa’);
    $Categoria = bp_get_member_profile_data(‘field=Categoria’);
    $Provincia = bp_get_member_profile_data(‘field=Provincia’);
    $Professione = bp_get_member_profile_data(‘field=Professione’);
    $Presentazione = bp_get_member_profile_data(‘field=Presentazione’);
    $Situazionesentimentale = bp_get_member_profile_data(‘field=SituazioneSentimentale’);

    echo ‘<p class=”negozio_on_header”>’. ” . $NomeNegozioImpresa . ‘</p>’;
    echo ‘<p class=”professione_on_header”>’. ” . $Categoria . ‘</p>’;
    echo ‘<p class=”name_on_header”>’. ” . $Nome . ‘ ‘ . $Cognome . ‘</p>’;
    echo ‘<p class=”professione_on_header”>’. ” . $Professione . ‘ </p>’;
    echo ‘<p class=”professione_on_header”>’. ‘In provincia di ‘ . $Provincia . ‘</p>’;
    echo ‘<p class=”professione_on_header”>’. ‘”‘ . $Presentazione . ‘” </p>’;
    echo ‘<p class=”professione_on_header”>’. ” . $Situazionesentimentale . ‘</p>’;
    }
    add_action(‘bp_profile_header_meta’, ‘add_member_meta_data_profile’);

    Which other snippet I could add (or new php file) to have those in the correct position between image profile and buttons?

    Many thanks,

    Giuseppe

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #44640

    Hello Giuseppe,

    Thank you for posting. Please contact your theme author as they are in a better position to assist you with this requirement.

    Regards
    Ravi

  • Participant
    Level: Enlightened
    Posts: 130
    giuseppe on #44650

    Hello Ravi,

    yes it’s better.

    Thank you,

    Giuseppe

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #44661

    Hello Giuseppe,

    Thank you for cooperating with us.

    Regards
    Ravi

  • Participant
    Level: Enlightened
    Posts: 130
    giuseppe on #44668

    Hello Ravi,

    I have fixed. I’m only trying now to reduce the one line of space added automacally between two echo commands like these:

    echo ‘<p class=”negozio_on_header”>’. ” . $NomeNegozioImpresa . ‘</p>’;
    echo ‘<p class=”professione_on_header”>’. ” . $Categoria . ‘</p>’;

    Noone seems to know nowhere in the web 🙂

    Thanks,

    Giuseppe

  • Participant
    Level: Enlightened
    Posts: 130
    giuseppe on #44673

    Hi,

    fixed.

    Thanks,

    Giuseppe

The topic ‘ [Resolved] xprofle on header’ is closed to new replies.

This topic is: resolved