-
Author
-
December 8, 2013 at 02:30 #7888frien337Participant
Hi SeventhQueen,
I would like to hide the “first & Last” name field from the profile accordion – unfortunately, in the admin dashboard, you cannot set the visibility of this field. I have already got the username to show across the site, I just need to figure out/find out how I can hide this field from the profile accordion.
Thanks again,
RyanDecember 9, 2013 at 21:19 #7996AbeKeymasterHi, you can change in wp-content/themes/sweetdate/members/single/profile/profile-loop.php
COPY CODE<dt><?php bp_the_profile_field_name(); ?></dt> <dd><?php bp_the_profile_field_value(); ?></dd>
with
COPY CODE<?php if (bp_get_the_profile_field_name() != "Name") {?> <dt><?php bp_the_profile_field_name(); ?></dt> <dd><?php bp_the_profile_field_value(); ?></dd> <?php } ?>
You can adapt the code to match your needs
CheersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 12, 2013 at 22:07 #8161frien337ParticipantThanks Abe, that work perfectly.
In case anyone has renamed their full name field, simply change the name text ( != “Name”) {?> ) to the new name of the field 🙂
December 17, 2013 at 23:16 #8458airsidworldParticipantHi,
Should we place profile-loop.php in the child theme or leave it in the main theme ?December 18, 2013 at 10:25 #8502AbeKeymasterThe best way is to put it into child theme so you won’t lose customization after theme update. See if it takes the changes from there
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 18, 2013 at 10:26 #8503frien337ParticipantHey airsidworld,
Leave the original in the main theme and place a copy in the child theme. You may need to create the folders in the child theme, if they are not there, and it should have a path something like this:
> wp-content/themes/sweetdate-child/members/single/profile/profile-loop.php
Regards,
RyanDecember 18, 2013 at 10:39 #8504airsidworldParticipant“first & Last” name field from the profile accordion don’t appear anymore.
Thanks Abe, thanks frien337.April 9, 2014 at 11:34 #14632efransenParticipantHi,
Done all of the above.. But still seeing the full name..?
active childtheme;
placed file profile-loop.php in wp-content/themes/sweetdate-child/members/single/profile
edited the file
changed name into naam (dutch)still no go..
Eric
April 12, 2014 at 18:00 #14922AbeKeymasterHi efransen, you must put your exact field name, case sensitive, as defined in Users – Profile fields
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.July 11, 2016 at 22:29 #128891juxtapozemediaParticipantHas there been any changes to this process two years later? I just updated the code with no affect.
July 13, 2016 at 14:00 #129033AbeKeymasterI saw the discussion on Themeforest comments. you need to try also the members/single/cover-image-header.php file
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.