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
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
The topic ‘ [Resolved] xprofle on header’ is closed to new replies.